Skip to content

ExpressionError

Raised for syntax errors, disallowed operations and runtime failures in expressions.

  • Error
new ExpressionError(
message,
source,
position?
): ExpressionError;
Parameter Type
message string
source string
position? number

ExpressionError

Error.constructor
Property Modifier Type Description
position readonly number | undefined Character offset in source, for syntax errors.
source readonly string Source of the expression that failed.