UNPKG

@qrvey/formula-lang

Version:

QFormula support for qrvey projects

28 lines 722 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FormulaErrorList = void 0; const errors_1 = require("../errors"); class FormulaErrorList { constructor() { this.errorList = []; } push(error) { if (error instanceof errors_1.BaseError) { this.errorList.push(error); } else if (error instanceof Error) { throw error; } else { throw new Error('Invalid Error object'); } } get() { return this.errorList; } get hasErrors() { return this.errorList.length > 0; } } exports.FormulaErrorList = FormulaErrorList; //# sourceMappingURL=formulaErrorList.js.map