view stubs/twisted/words/protocols/jabber/error.pyi @ 4266:9fc3d28bc3f6

core (main): add a mechanism to have a shared temp directory: this directory may be used to share files between backend and frontends. Normally, an os-dependent temporary directory is created for that, but if this option is set, the directory will be created in <local_dir>/<cache_dir>, which may be useful in some use case (e.g. containerized frontends and backend).
author Goffi <goffi@goffi.org>
date Wed, 12 Jun 2024 22:47:34 +0200
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):
    ...