Class Index | Minimal

Classes


Class jabberwerx.util.Error (MINIMAL)


Extends Error.
JWApp's "native" error object. Just a wrapper/namespace so we can extend Error objects pleasantly.

Class Summary
Constructor Attributes Constructor Name and Description
 

Creates a new jabberwerx.util.Error with the given message.

Method Summary
Method Attributes Method Name and Description
<static>  
jabberwerx.util.Error.extend(message, extension)
Create a new Error type.
Class Detail
jabberwerx.util.Error(message)

Creates a new jabberwerx.util.Error with the given message.

Parameters:
{String} message
The error message.
Method Detail
<static> {Function} jabberwerx.util.Error.extend(message, extension)
Create a new Error type. You can define the message and extension at declaration time (ie, defining the error class) and then override it at creation time (ie, at the throw site) if desired.
Parameters:
{String} message
Becomes the base Error object's message.
{Object} extension
Properties in this object are copied into the new error type's prototype.

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