source: trip-planner-front/node_modules/ajv/lib/compile/ref_error.ts@ 571e0df

Last change on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 428 bytes
Line 
1import {resolveUrl, normalizeId, getFullPath} from "./resolve"
2
3export default class MissingRefError extends Error {
4 readonly missingRef: string
5 readonly missingSchema: string
6
7 constructor(baseId: string, ref: string, msg?: string) {
8 super(msg || `can't resolve reference ${ref} from id ${baseId}`)
9 this.missingRef = resolveUrl(baseId, ref)
10 this.missingSchema = normalizeId(getFullPath(this.missingRef))
11 }
12}
Note: See TracBrowser for help on using the repository browser.