GT2/GT2-iOS/node_modules/get-uri/notfound.js

29 lines
565 B
JavaScript

/**
* 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);