Class jabberwerx.Stream.ErrorInfo (MINIMAL)
Extends
JWModel.
Representation of stream error information.
Constructor Attributes | Constructor Name and Description |
---|---|
jabberwerx.Stream.ErrorInfo(cond, text)
Creates a new ErrorInfo with the given information. |
Field Attributes | Field Name and Description |
---|---|
The condition of this ErrorInfo. |
|
The descriptive text for this ErrorInfo. |
Method Attributes | Method Name and Description |
---|---|
<static> |
jabberwerx.Stream.ErrorInfo.createWithNode(node)
Creates a ErrorInfo based on the given node. |
getNode()
Retrieves the element for this ErrorInfo. |
|
Called after this object is rehydrated. |
Class Detail
jabberwerx.Stream.ErrorInfo(cond, text)
Creates a new ErrorInfo with the given information.
- Parameters:
- {String} cond Optional
- The error condition
- {String} text Optional
- The error text description
Field Detail
{String}
condition
The condition of this ErrorInfo.
{String}
text
The descriptive text for this ErrorInfo.
Method Detail
<static>
{jabberwerx.Stream.ErrorInfo}
jabberwerx.Stream.ErrorInfo.createWithNode(node)
Creates a ErrorInfo based on the given node.
- Parameters:
- {Element} node
- The XML <error/>
- Throws:
- {TypeError}
- If {node} is not an element
- Returns:
- {jabberwerx.Stream.ErrorInfo} The ErrorInfo
{Element}
getNode()
Retrieves the element for this ErrorInfo. The returned element is as follows:
<stream:error xmlns:stream="http://etherx.jabber.org/streams"> <{condition-local-name} xmlns="urn:ietf:params:xml:ns:xmpp-streams"/> <text xmlns="urn:ietf:params:xml:ns:xmpp-streams">{text}</text> </error>
- Returns:
- {Element} The DOM representation
wasUnserialized()
Called after this object is rehydrated. This method sets the toString method as expected.