1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const resolve_1 = require("./resolve");
|
4 | class MissingRefError extends Error {
|
5 | constructor(resolver, baseId, ref, msg) {
|
6 | super(msg || `can't resolve reference ${ref} from id ${baseId}`);
|
7 | this.missingRef = (0, resolve_1.resolveUrl)(resolver, baseId, ref);
|
8 | this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef));
|
9 | }
|
10 | }
|
11 | exports.default = MissingRefError;
|
12 |
|
\ | No newline at end of file |