Root Stanza

1.4 Documentation

«  XML Serialization   ::   Contents   ::   Message Stanza  »

Root Stanza

class slixmpp.stanza.rootstanza.RootStanza(stream=None, xml=None, stype=None, sto=None, sfrom=None, sid=None, parent=None)[source]

A top-level XMPP stanza in an XMLStream.

The RootStanza class provides a more XMPP specific exception handler than provided by the generic StanzaBase class.

Methods:
exception – Overrides StanzaBase.exception
exception(e)[source]

Create and send an error reply.

Typically called when an event handler raises an exception. The error’s type and text content are based on the exception object’s type and content.

Overrides StanzaBase.exception.

Arguments:
e – Exception object

«  XML Serialization   ::   Contents   ::   Message Stanza  »

From &yet