module documentation
(source)

XMPP Error support.
Class BaseError Base class for XMPP error exceptions.
Class StanzaError Stanza Error exception.
Class StreamError Stream Error exception.
Function exceptionFromStanza Build an exception object from an error stanza.
Function exceptionFromStreamError Build an exception object from a stream error.
Variable CODES_TO_CONDITIONS Undocumented
Variable NS_XML Undocumented
Variable NS_XMPP_STANZAS Undocumented
Variable NS_XMPP_STREAMS Undocumented
Variable STANZA_CONDITIONS Undocumented
Function _parseError Parses an error element.
def exceptionFromStanza(stanza): (source)
Build an exception object from an error stanza.
Parameters
stanza:domish.Elementthe error stanza
Returns
StanzaErrorthe generated exception object
def exceptionFromStreamError(element): (source)
Build an exception object from a stream error.
Parameters
element:domish.Elementthe stream error
Returns
StreamErrorthe generated exception object
CODES_TO_CONDITIONS: dict = (source)

Undocumented

NS_XML: str = (source)

Undocumented

NS_XMPP_STANZAS: str = (source)

Undocumented

NS_XMPP_STREAMS: str = (source)

Undocumented

STANZA_CONDITIONS: dict = (source)

Undocumented

def _parseError(error, errorNamespace): (source)
Parses an error element.
Parameters
error:domish.ElementThe error element to be parsed
errorNamespace:strThe namespace of the elements that hold the error condition and text.
Returns
dictDictionary with extracted error information. If present, keys condition, text, textLang have a string value, and appCondition has an domish.Element value.