preserves/implementations/javascript/packages/schema/src/error.ts

11 lines
241 B
TypeScript

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