verifyd-error
v0.1.6
Published
Create custom error objects for Verifyd.
Downloads
5
Readme
verifyd-error
Create custom error objects for Verifyd.
var MyError = require('verifyd-error')('MyError', { code: 'ENOENT' });
// or
var MyError = require('verifyd-error')('MyError', 501);
Create new errors with the resulting object. The first argument is the error message. The second is an object containing keys that will decorate the error, overriding any keys set by the factory.
Run Test
$ make test