Syntactic sugar for referencing and throwing common named and custom errors/exceptions
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