lib/index.js
function defineError(code, message) {
    var ErrorClass = errors.helpers.generateClass(code);
    function ExportedError(err) {
        ErrorClass.call(this, message, err);
        return this;
    }
    util.inherits(ExportedError, ErrorClass);
    return ExportedError;
}
function defineError(code, message) {
    var ErrorClass = errors.helpers.generateClass(code);
    function ExportedError(err) {
        ErrorClass.call(this, message, err);
        return this;
    }
    util.inherits(ExportedError, ErrorClass);
    return ExportedError;
}
function defineError ( code , message ) { var ErrorClass = errors . helpers . generateClass ( code ) ; function ExportedError ( err ) { ErrorClass . call ( this , message , err ) ; return this ; } util . inherits ( ExportedError , ErrorClass ) ; return ExportedError ; }
Defines an error
Defines an error