Expand description
Stable error-code surface, mirroring xl3 (TS)’s XtlError /
xtlError / isXtlError (ADR-0015) and xl3-py’s XtlError.
Status: this is the type-level parity. Internally most call
sites still throw anyhow::Error with a free-form message — they
migrate to XtlError::new(code, msg) as we touch each one. The
down-cast helper lets a host (xl3-wasm, conformance runner) ask
“is this a known XTL error?” today regardless of how many sites
have moved.
Modules§
- code
- A few canonical codes hosts will want to match on without hard- coding magic strings. The full catalogue (36 in TS, 43 in py) stays in the slash-string namespace — these are just the ones the Rust core actively emits today.
Structs§
- XtlError
- One known XTL error code, mirroring the slash-namespaced strings
the TS/py implementations emit (e.g.
xl3/source/sheet-missing). Stored as a free-form string so we can stay in sync with the canonical catalogue without versioning a Rust enum every time a new code lands upstream.
Functions§
- is_
xtl_ error - Downcast helper mirroring xl3 (TS)
isXtlError(e)/ xl3-pyis_xtl_error(e). Returns the&XtlErrorview when the anyhow chain originated from an XtlError, otherwiseNone.