Last change
on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
428 bytes
|
Line | |
---|
1 | import {resolveUrl, normalizeId, getFullPath} from "./resolve"
|
---|
2 |
|
---|
3 | export 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.