Home | Trees | Index | Help |
|
---|
Package pyxmpp :: Module error :: Class StanzaErrorNode |
|
ErrorNode
--+
|
StanzaErrorNode
Stanza error element.
Method Summary | |
---|---|
Initialize a StreamErrorNode object. | |
Get the message for the error. | |
Get the error type. | |
Upgrade a legacy error element to the XMPP compliant one. | |
Inherited from ErrorNode | |
| |
Add custom condition element to the error. | |
Downgrade an XMPP error element to the legacy format. | |
Free the associated XML node. | |
Free the associated "borrowed" XML node. | |
Get the condition element of the error. | |
Get the description text from the error element. | |
Check if the error node is a legacy error element. | |
Serialize the element node. | |
Evaluate XPath expression on the error element. |
Method Details |
---|
__init__(self,
xmlnode_or_cond,
error_type=None,
copy=1,
parent=None)
|
get_message(self)Get the message for the error. :return: the error message. :returntype: `unicode` |
get_type(self)Get the error type. :return: type of the error. :returntype: `unicode` |
upgrade(self)Upgrade a legacy error element to the XMPP compliant one. Use the error code provided to select the condition and the <error/> CDATA for the error text.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed May 31 22:37:00 2006 | http://epydoc.sf.net |