module documentation
(source)

XMPP Error support.

Variable NS_XML Undocumented
Variable NS_XMPP_STREAMS Undocumented
Variable NS_XMPP_STANZAS Undocumented
Variable STANZA_CONDITIONS Undocumented
Variable CODES_TO_CONDITIONS Undocumented
Class BaseError Base class for XMPP error exceptions.
Class StreamError Stream Error exception.
Class StanzaError Stanza Error exception.
Function exceptionFromStreamError Build an exception object from a stream error.
Function exceptionFromStanza Build an exception object from an error stanza.
Function _parseError Parses an error element.
NS_XML = (source)

Undocumented

(type: str)
NS_XMPP_STREAMS = (source)

Undocumented

(type: str)
NS_XMPP_STANZAS = (source)

Undocumented

(type: str)
STANZA_CONDITIONS = (source)

Undocumented

(type: dict)
CODES_TO_CONDITIONS = (source)

Undocumented

(type: dict)
def _parseError(error, errorNamespace): (source)

Parses an error element.

ParameterserrorThe error element to be parsed (type: domish.Element)
errorNamespaceThe namespace of the elements that hold the error condition and text. (type: str)
ReturnsDictionary with extracted error information. If present, keys condition, text, textLang have a string value, and appCondition has an domish.Element value. (type: dict)
def exceptionFromStreamError(element): (source)

Build an exception object from a stream error.

Parameterselementthe stream error (type: domish.Element)
Returnsthe generated exception object (type: StreamError)
def exceptionFromStanza(stanza): (source)

Build an exception object from an error stanza.

Parametersstanzathe error stanza (type: domish.Element)
Returnsthe generated exception object (type: StanzaError)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.