Module t.w.p.j.error

Part of twisted.words.protocols.jabber View Source

XMPP Error support.
Class Error Generic XMPP error exception.
Class StreamError Stream Error exception.
Class StanzaError Stanza Error exception.
Function _getText Undocumented
Function _parseError Parses an error element.
Function exceptionFromStreamError Build an exception object from a stream error.
Function exceptionFromStanza Build an exception object from an error stanza.
def _getText(element): (source)
Undocumented
def _parseError(error): (source)
Parses an error element.
Parameterserrorthe error element to be parsed (type: domish.Element )
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.