notfound.js 499 B

12345678910111213141516
  1. "use strict";
  2. /**
  3. * Error subclass to use when the source does not exist at the specified endpoint.
  4. *
  5. * @param {String} message optional "message" property to set
  6. * @api protected
  7. */
  8. Object.defineProperty(exports, "__esModule", { value: true });
  9. class NotFoundError extends Error {
  10. constructor(message) {
  11. super(message || 'File does not exist at the specified endpoint');
  12. this.code = 'ENOTFOUND';
  13. }
  14. }
  15. exports.default = NotFoundError;
  16. //# sourceMappingURL=notfound.js.map