Stable category suitable for application logic.
Original expression, without Unicode or whitespace normalization.
Zero-based UTF-16 index of the error, or input.length for missing input.
Expected token hints when available; empty for evaluation failures.
OptionalcauseReadonlycodeStable category suitable for application logic.
ReadonlycolumnOne-based UTF-16 column in the original input.
ReadonlyexpectedExpected token hints when available; empty for evaluation failures.
ReadonlyinputOriginal expression, without Unicode or whitespace normalization.
ReadonlylineOne-based line in the original input.
ReadonlyoffsetZero-based UTF-16 index of the error, or input.length for missing input.
Optionalstack
An expression parsing failure located in the original input.
offsetuses zero-based UTF-16 indices;lineandcolumnare one-based. Usecodefor application logic andmessagefor a source line with a caret. Quantity's dimensional and temperature validation errors are separate.Example