diff options
Diffstat (limited to 'llparse-frontend/src/node/error.ts')
-rw-r--r-- | llparse-frontend/src/node/error.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llparse-frontend/src/node/error.ts b/llparse-frontend/src/node/error.ts new file mode 100644 index 0000000..c4e6faf --- /dev/null +++ b/llparse-frontend/src/node/error.ts @@ -0,0 +1,9 @@ +import { IUniqueName } from '../utils'; +import { Node } from './base'; + +export class Error extends Node { + constructor(id: IUniqueName, public readonly code: number, + public readonly reason: string) { + super(id); + } +} |