Current File : //usr/local/share/.config/yarn/global/node_modules/get-uri/notfound.js |
/**
* Module dependencies.
*/
var inherits = require('util').inherits;
/**
* Module exports.
*/
module.exports = NotFoundError;
/**
* Error subclass to use when the source does not exist at the specified endpoint.
*
* @param {String} message optional "message" property to set
* @api protected
*/
function NotFoundError (message) {
this.name = 'NotFoundError';
this.code = 'ENOTFOUND';
this.message = message || 'File does not exist at the specified endpoint';
Error.captureStackTrace(this, NotFoundError);
}
inherits(NotFoundError, Error);