Your IP : 216.73.217.13


Current Path : /home/deltalab/PMS/logistic-backend/node_modules/ajv/lib/compile/
Upload File :
Current File : //home/deltalab/PMS/logistic-backend/node_modules/ajv/lib/compile/ref_error.ts

import {resolveUrl, normalizeId, getFullPath} from "./resolve"

export default class MissingRefError extends Error {
  readonly missingRef: string
  readonly missingSchema: string

  constructor(baseId: string, ref: string, msg?: string) {
    super(msg || `can't resolve reference ${ref} from id ${baseId}`)
    this.missingRef = resolveUrl(baseId, ref)
    this.missingSchema = normalizeId(getFullPath(this.missingRef))
  }
}