ifc-expressions
Version:
Parsing and evaluation of IFC expressions
13 lines (12 loc) • 737 B
JavaScript
import { ExpressionTypeError } from "./ExpressionTypeError.js";
export class WrongFunctionArgumentTypeException extends ExpressionTypeError {
constructor(functionName, argumentName, expectedType, actualType, argumentIndex, ctx) {
super(`Function ${functionName}: Actual argument type '${actualType.getName()}' does not satisfy expected type '${expectedType.getName()}' for argument '${argumentName}' at 0-based position ${argumentIndex}.`, ctx);
this.functionName = functionName;
this.argumentName = argumentName;
this.expectedType = expectedType;
this.actualType = actualType;
this.argumentIndex = argumentIndex;
}
}
//# sourceMappingURL=WrongFunctionArgumentTypeException.js.map