Skip to content

Error management in command's action

Vincent Peybernes edited this page Jul 25, 2013 · 3 revisions

Command.IO provide a custom error management system, to protect the application execution from end user error.

CommandError type.

Command.IO provide two custom error type: CommandError and RuntimeCommandError. This errors inherit of the JavaScript Error object with two additionnal properties: the command name what throw the error and the severity levelof the error.

The error are provided by the command controler (this in action function).

Catching system

Clone this wiki locally