Syntactic sugar for referencing and throwing common named and custom errors/exceptions
npm install exceptions
|1||downloads in the last day|
|104||downloads in the last week|
|266||downloads in the last month|
|Version||0.1.1 last updated 2 years ago|
|Dependents||astrolabe, docit, spidertest|
Hopefully the list of static common Exception instances will grow over time.
$npm install exceptions
Alternatively include as a dependency within your package.json and:
var exceptions = require("exceptions");
Then invoke the provided APIs on instances of Error or Error.stack as required.
See test/testExceptions.js for some examples.
First install the dependencies:
$ npm link
Then to run the tests:
$ npm test