main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
513 bytes
|
Line | |
---|
1 | import {resolveUrl, normalizeId, getFullPath} from "./resolve"
|
---|
2 | import type {UriResolver} from "../types"
|
---|
3 |
|
---|
4 | export default class MissingRefError extends Error {
|
---|
5 | readonly missingRef: string
|
---|
6 | readonly missingSchema: string
|
---|
7 |
|
---|
8 | constructor(resolver: UriResolver, baseId: string, ref: string, msg?: string) {
|
---|
9 | super(msg || `can't resolve reference ${ref} from id ${baseId}`)
|
---|
10 | this.missingRef = resolveUrl(resolver, baseId, ref)
|
---|
11 | this.missingSchema = normalizeId(getFullPath(resolver, this.missingRef))
|
---|
12 | }
|
---|
13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.