twisted.words.protocols.jabber.error module documentationtwisted.words.protocols.jabber
View Source
XMPP Error support.
| 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. |
Parses an error element.
| Parameters | error | The error element to be parsed (type: domish.Element) |
| errorNamespace | The namespace of the elements that hold the error condition and text. (type: str) | |
| Returns | Dictionary with extracted error information. If present, keys
condition, text, textLang have a
string value, and appCondition has an domish.Element
value. (type: dict) | |
Build an exception object from a stream error.
| Parameters | element | the stream error (type: domish.Element) |
| Returns | the generated exception object (type: StreamError) | |
Build an exception object from an error stanza.
| Parameters | stanza | the error stanza (type: domish.Element) |
| Returns | the generated exception object (type: StanzaError) | |