Package pyxmpp :: Module error :: Class StreamErrorNode
[hide private]

Class StreamErrorNode

source code

ErrorNode --+
            |
           StreamErrorNode

Stream error element.
Instance Methods [hide private]
 
__init__(self, xmlnode_or_cond, copy=1, parent=None)
Initialize a StreamErrorNode object.
source code
unicode
get_message(self)
Get the message for the error.
source code

Inherited from ErrorNode: __del__, add_custom_condition, downgrade, free, free_borrowed, get_condition, get_text, is_legacy, serialize, upgrade, xpath_eval

Method Details [hide private]

__init__(self, xmlnode_or_cond, copy=1, parent=None)
(Constructor)

source code 
Initialize a StreamErrorNode object.
Parameters:
  • xmlnode_or_cond (: libxml2.xmlNode or unicode) - : XML node to be wrapped into this object or the primary (defined by XMPP specification) error condition name.
  • copy (: bool) - : When True then the XML node will be copied, otherwise it is only borrowed.
  • parent (: libxml2.xmlNode) - : Parent node for the XML node to be copied or created.
Overrides: ErrorNode.__init__

get_message(self)

source code 
Get the message for the error.
Returns: unicode
the error message.