Part of twisted.words.protocols.jabber.error View Source View In Hierarchy
Method | __init__ | Undocumented |
Method | getElement | Get XML representation from self. |
Method | toResponse | Construct error response stanza. |
Inherited from Error:
Method | __str__ | Undocumented |
Get XML representation from self.
Overrides the baseError.getElement
to make sure the returned element has a type
attribute and
optionally a legacy code
attribute.
Returns | (type: domish.Element
) |
Construct error response stanza.
Thestanza
is transformed into an error response stanza
by swapping the to
and from
addresses and
inserting an error element.
Parameters | stanza | the stanza to respond to
(type: domish.Element
) |