view stubs/twisted/words/protocols/jabber/error.pyi @ 4182:4dc00e848961

core (tools/trigger): new `add_with_check` method: this method add a wrapper which will skip the trigger is the plugin is not available in the session (e.g. a component which doesn't use the plugin).
author Goffi <goffi@goffi.org>
date Sat, 09 Dec 2023 19:19:26 +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):
    ...