Skip to main content

Module traceback

Module traceback 

Source
Expand description

Rendering errors.

Rust-native reimagining of rich/traceback.py. Upstream renders a Python exception traceback (stack frames + highlighted source); Rust errors don’t carry frames, so Traceback instead renders an error’s message and its Error::source chain (Caused by:) inside a red-bordered panel — the same “here’s what went wrong, clearly” utility.

Divergence: no stack frames / source code (Rust errors don’t expose them). Pair with std::backtrace::Backtrace at the call site if you want a frame list. See docs/DIVERGENCES.md #19.

Structs§

Traceback
A rendered error: the top-level message plus its Caused by: chain. Mirrors the role of rich.traceback.Traceback.