Class t.w.p.j.e.StanzaError(Error):

Part of twisted.words.protocols.jabber.error View Source View In Hierarchy

Stanza Error exception.
Method __init__ Undocumented
Method getElement Get XML representation from self.
Method toResponse Construct error response stanza.

Inherited from Error:

Method __str__ Undocumented
def __init__(self, condition, type=None, text=None, textLang=None, appCondition=None): (source)
Undocumented
def getElement(self): (source)

Get XML representation from self.

Overrides the base Error.getElement to make sure the returned element has a type attribute and optionally a legacy code attribute.
Returns(type: domish.Element )
def toResponse(self, stanza): (source)

Construct error response stanza.

The stanza is transformed into an error response stanza by swapping the to and from addresses and inserting an error element.
Parametersstanzathe stanza to respond to (type: domish.Element )
API Documentation for twisted, generated by pydoctor.