Core feature
Errors & source spans
Make invalid input useful with stable error codes, exact spans, and phase-aware exceptions.
Failures you can design around.
Lexing, parsing, and evaluation errors are represented by MathException subclasses. Every expression error carries a stable code and a source span so your form can underline the exact problem.
lex.malformed_numberInvalid numeric tokenparse.unexpected_tokenExpression structure is invalideval.division_by_zeroDivision or modulo by zeroeval.integer_overflowExact integer result cannot fit