Jaxer.Exception : Object
Return to: Jaxer Framework index

Exception used by the Jaxer framework.

Platform Support

Jaxer Server FrameworkJaxer Client Framework
1.0no

Constructors

ConstructorActionJaxer Server FrameworkJaxer Client Framework
Jaxer.Exception Constructor(String info, [Object logger]) : Jaxer.Exception
The exception used by the Jaxer framework. At runtime this is available from the window object
Show Details1.0no

Jaxer.Exception(String info, [Object logger]) : Jaxer.Exception

The exception used by the Jaxer framework. At runtime this is available from the window object

Parameters
StringinfoThe descriptive text of the Exception to be thrown, or an Error-derived object
Objectlogger(optional)An optional reference to an instance of the framework logger to be used. A default setting is used if this parameter is omitted

Returns
Jaxer.ExceptionAn instance of Exception

Functions

MethodActionJaxer Server FrameworkJaxer Client Framework
toString() : String
Provides a string representation of the Exception description.
Show Details1.0no

Returns
StringA description of the exception

static toDetails(Object obj) : String
Get verbose details on the error
Show Details1.0no

Parameters
ObjectobjThe error object on which details are desired. An attempt is made to convert it into an Error-derived object before details are retrieved.

Returns
StringThe detailed description

static toError(Object obj) : Error
Returns a JavaScript Error (or Error-derived) object based on the given object
Show Details1.0no

Parameters
ObjectobjIf this is already derived from an Error, it will just be returned. Otherwise it will be stringified and used as the description of the error.

Returns
ErrorThe Error-derived representation

aptana_docs