UNPKG

558 BJavaScriptView Raw
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 */
8Object.defineProperty(exports, "__esModule", { value: true });
9class NotFoundError extends Error {
10 constructor(message) {
11 super(message || 'File does not exist at the specified endpoint');
12 this.code = 'ENOTFOUND';
13 Object.setPrototypeOf(this, new.target.prototype);
14 }
15}
16exports.default = NotFoundError;
17//# sourceMappingURL=notfound.js.map
\No newline at end of file