11 lines
257 B
TypeScript
11 lines
257 B
TypeScript
|
import { Position, formatPosition } from '@preserves/core';
|
||
|
|
||
|
export class SchemaSyntaxError extends Error {
|
||
|
readonly pos: Position | null;
|
||
|
|
||
|
constructor(message: string, pos: Position | null) {
|
||
|
super(message);
|
||
|
this.pos = pos;
|
||
|
}
|
||
|
}
|