Skip to content

Error Library

Rohan Singh edited this page Jan 30, 2015 · 2 revisions

Exports

error

error(message: string)

Throws a runtime exception with the given message.

try

try(action: function, ...arguments: any): object

Calls action with the given arguments and either returns an object with result set to its return value or error set to an error message.