Syntactic sugar for referencing and throwing common named and custom errors/exceptions
Want to see pretty graphs? Log in now!
npm install exceptions
|1||downloads in the last day|
|105||downloads in the last week|
|483||downloads in the last month|
|Last Published By|
|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