Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Comparison with thiserror

orion-error and thiserror are not mutually exclusive, but their positioning differs.

Positioning

thiserror: Define standard Rust error types, serving the std::error::Error ecosystem.

orion-error: Define runtime structured error carriers, managing context, source frames, snapshots, and protocol projections.

Capability Comparison

Capabilitythiserrororion-error
Define standard error typesStrongNot primary goal
Domain reason deriveNeeds extra identityOrionError is recommended
Runtime structured contextNoYes
Source frame trackingNoYes
stable code / categoryNoYes
snapshot / report / projectionNoYes

When to Use thiserror

  • Exposing standard std::error::Error types
  • Library APIs requiring standard error types