12345678910111213141516 |
- export class SemanticError extends Error {
- constructor (msg, id) {
- super(msg);
- this.id = id;
- this._context = {};
- if (Error.captureStackTrace) Error.captureStackTrace(this, SemanticError);
- }
- get context () {
- return this._context;
- }
- set context (contextObj) {
- this._context = contextObj;
- }
- }
|