Skip to main content

Crate rtb_error

Crate rtb_error 

Source
Expand description

Error types and the diagnostic-report pipeline.

The framework follows the thiserror + miette pattern:

  • Library-level crates define typed errors with #[derive(thiserror::Error, miette::Diagnostic)].
  • At the process boundary (fn main() -> miette::Result<()>), errors are rendered by a miette hook installed via hook.
  • There is no ErrorHandler trait or .check() funnel — errors are values, propagated with ?, and reported once at the edge.

See docs/development/specs/2026-04-22-rtb-error-v0.1.md for the authoritative contract.

Modules§

hook
Hook installation helpers.

Structs§

Report
Core Diagnostic wrapper type.

Enums§

Error
Umbrella error enum for the framework.

Traits§

Diagnostic
Adds rich metadata to your Error that can be used by Report to print really nice and human-friendly error messages.

Type Aliases§

Result
Canonical framework result alias.

Derive Macros§

Diagnostic