main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
712 bytes
|
Line | |
---|
1 | import JsonPointerError from "./JsonPointerError.mjs";
|
---|
2 | class EvaluationJsonPointerError extends JsonPointerError {
|
---|
3 | pointer;
|
---|
4 | tokens;
|
---|
5 | failedToken;
|
---|
6 | failedTokenPosition;
|
---|
7 | element;
|
---|
8 | constructor(message, structuredOptions) {
|
---|
9 | super(message, structuredOptions);
|
---|
10 | if (typeof structuredOptions !== 'undefined') {
|
---|
11 | this.pointer = structuredOptions.pointer;
|
---|
12 | if (Array.isArray(structuredOptions.tokens)) {
|
---|
13 | this.tokens = [...structuredOptions.tokens];
|
---|
14 | }
|
---|
15 | this.failedToken = structuredOptions.failedToken;
|
---|
16 | this.failedTokenPosition = structuredOptions.failedTokenPosition;
|
---|
17 | this.element = structuredOptions.element;
|
---|
18 | }
|
---|
19 | }
|
---|
20 | }
|
---|
21 | export default EvaluationJsonPointerError; |
---|
Note:
See
TracBrowser
for help on using the repository browser.