Skip to content

EvalError

class EvalError : public WalError

Evaluation failed - runtime error during expression evaluation

Thrown by SEval when encountering: - Undefined variables (@ anchor: ast/eval_error/undefined) - Type errors (wrong types for operation) - Division by zero - Invalid function calls - Trace access failures

Supports stack trace annotation via add_trace() for debugging.

See
SEval::eval for evaluation context

Functions

Name Description
add_trace Add a frame to the stack trace for debugging

Function Details

add_trace

void add_trace(const std::string& frame)

Add a frame to the stack trace for debugging