view stubs/twisted/words/protocols/jabber/error.pyi @ 4008:56e5b18f4d06

plugin XEP-0465: log a warning and return empty list/dict when `forbidden` error is received: this error probably means that the service doesn't support PPS.
author Goffi <goffi@goffi.org>
date Thu, 16 Mar 2023 12:33:33 +0100
parents 8289ac1b34f4
children
line wrap: on
line source

from typing import Optional

from twisted.words.xish import domish


class BaseError(Exception):
    namespace: str
    condition: str
    text: Optional[str]
    textLang: Optional[str]
    appCondition: Optional[domish.Element]

class StanzaError(BaseError):
    ...