Jaxer.ClientError : Object
Return to: Jaxer Framework index

An error that can be thrown on the client during a callback

Platform Support

Jaxer Server FrameworkJaxer Client Framework
1.0no

Constructors

ConstructorActionJaxer Server FrameworkJaxer Client Framework
Jaxer.ClientError Constructor(String info, [Object options]) : void
An error that can be thrown on the client during a callback. If you want to throw a meaningful (i.e., non-generic) error on the browser from a callback, throw a new Jaxer.ClientError -- just be mindful not to pass sensitive server-side information. On the client, a new Error will be thrown by your proxy, or you can specify you'd like something else to be thrown.
Show Details1.0no

Jaxer.ClientError(String info, [Object options]) : void

An error that can be thrown on the client during a callback. If you want to throw a meaningful (i.e., non-generic) error on the browser from a callback, throw a new Jaxer.ClientError -- just be mindful not to pass sensitive server-side information. On the client, a new Error will be thrown by your proxy, or you can specify you'd like something else to be thrown.

Parameters
StringinfoThe descriptive text of the Error to be thrown, or an object whose properties will be copied to the Error object to be thrown. But if options.wrapped is specified to be false, this argument itself is thrown on the client.
Objectoptions(optional)A hashmap of name-value property pairs. Currently one option is supported: if there is a 'wrapped' property and it is set to false, the info object itself is thrown on the client, rather than a new Error.

aptana_docs