You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

notfound.js 565B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Module dependencies.
  3. */
  4. var inherits = require('util').inherits;
  5. /**
  6. * Module exports.
  7. */
  8. module.exports = NotFoundError;
  9. /**
  10. * Error subclass to use when the source does not exist at the specified endpoint.
  11. *
  12. * @param {String} message optional "message" property to set
  13. * @api protected
  14. */
  15. function NotFoundError (message) {
  16. this.name = 'NotFoundError';
  17. this.code = 'ENOTFOUND';
  18. this.message = message || 'File does not exist at the specified endpoint';
  19. Error.captureStackTrace(this, NotFoundError);
  20. }
  21. inherits(NotFoundError, Error);