Class Index | Minimal

Classes


Class jabberwerx.Stanza.ErrorInfo (MINIMAL)


Extends JWModel.

Representation of stanza error information.

Class Summary
Constructor Attributes Constructor Name and Description
 
jabberwerx.Stanza.ErrorInfo(type, cond, text)

Creates a new ErrorInfo with the given information.

Field Summary
Field Attributes Field Name and Description
 

The condition of the error info.

 

The optional text description for the error info.

 

The type of error info.

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

Creates an ErrorInfo based on the given node.

 

Retrieves the element for this ErrorInfo.

 

Called after this object is rehydrated.

Class Detail
jabberwerx.Stanza.ErrorInfo(type, cond, text)

Creates a new ErrorInfo with the given information.

Parameters:
{String} type Optional
The error type ("cancel", "auth", etc)
{String} cond Optional
The error condition
{String} text Optional
The error text description
Field Detail
{String} condition

The condition of the error info. This is the expanded-name of the predefined condition for the ErrorInfo.


{String} text

The optional text description for the error info.


{String} type

The type of error info.

Method Detail
<static> {jabberwerx.Stanza.ErrorInfo} jabberwerx.Stanza.ErrorInfo.createWithNode(node)

Creates an ErrorInfo based on the given node.

Parameters:
{Element} node
The XML <error/>
Throws:
{TypeError}
If {node} is not an element
Returns:
{jabberwerx.Stanza.ErrorInfo} The ErrorInfo

{Element} getNode()

Retrieves the element for this ErrorInfo. The returned element is as follows:

 <error type="{type}">
     <{condition-local-name} xmlns="urn:ietf:params>xml:ns:xmpp-stanzas"/>
     <text xmlns="urn:ietf:params>xml:ns:xmpp-stanzas">{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)