2021-03-11 16:59:40 +00:00
|
|
|
import { Position } from '@preserves/core';
|
2021-03-11 13:43:06 +00:00
|
|
|
|
|
|
|
export class SchemaSyntaxError extends Error {
|
|
|
|
readonly pos: Position | null;
|
|
|
|
|
|
|
|
constructor(message: string, pos: Position | null) {
|
|
|
|
super(message);
|
|
|
|
this.pos = pos;
|
|
|
|
}
|
|
|
|
}
|