ifc-expressions
Version:
Parsing and evaluation of IFC expressions
17 lines (16 loc) • 921 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoSuchFunctionExceptionMapper = void 0;
const ExprEvalResult_js_1 = require("../../expression/ExprEvalResult.js");
const NoSuchFunctionException_js_1 = require("../NoSuchFunctionException.js");
const TextSpan_js_1 = require("../../util/TextSpan.js");
class NoSuchFunctionExceptionMapper {
mapException(exception) {
const name = exception instanceof NoSuchFunctionException_js_1.NoSuchFunctionException
? exception.functionName
: exception.methodName;
return new ExprEvalResult_js_1.ExprEvalUnknownFunctionErrorObj(exception.message, name, TextSpan_js_1.TextSpan.of(exception.fromLine, exception.fromColumn + 1, exception.toLine, exception.toColumn + 1));
}
}
exports.NoSuchFunctionExceptionMapper = NoSuchFunctionExceptionMapper;
//# sourceMappingURL=NoSuchFunctionExceptionMapper.js.map