Class Index | Minimal

Classes


Class jabberwerx.Stream.ErrorInfo (MINIMAL)


Extends JWModel.

Representation of stream error information.

Class Summary
Constructor Attributes Constructor Name and Description
 

Creates a new ErrorInfo with the given information.

Field Summary
Field Attributes Field Name and Description
 

The condition of this ErrorInfo.

 

The descriptive text for this ErrorInfo.

Method Summary
Method Attributes Method Name and Description
<static>  
jabberwerx.Stream.ErrorInfo.createWithNode(node)

Creates a ErrorInfo based on the given node.

 

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.


Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 02 2014 13:23:43 GMT-0600 (MDT)