UNPKG

825 BJavaScriptView Raw
1var __defProp = Object.defineProperty;
2var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3var __publicField = (obj, key, value) => {
4 __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5 return value;
6};
7class NotFoundError extends Error {
8 constructor(path, options) {
9 var __super = (...args) => {
10 super(...args);
11 __publicField(this, "path");
12 };
13 if (!(options == null ? void 0 : options.cause)) {
14 __super(`Could lookup file for path \`${path}\``, options);
15 } else {
16 __super(`Could lookup file for path \`${path}\`
17
18${options.cause.toString()}`, options);
19 }
20 this.path = path;
21 }
22}
23export {
24 NotFoundError
25};
26//# sourceMappingURL=errors.js.map