error-forge 1.0.2

Pragmatic Rust error-handling framework with stable error metadata, contextual diagnostics, optional async support, and synchronous recovery primitives (retry, circuit-breaker, backoff). Optional #[derive(ModError)], declarative define_errors!, and feature-gated logging / tracing / serde adapters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
error: define_errors!: a variant may carry only one #[error(display = "...")] attribute
 --> tests/ui/fail/define_errors_duplicate_display.rs:1:1
  |
1 | / error_forge::define_errors! {
2 | |     pub enum NetError {
3 | |         #[error(display = "first")]
4 | |         #[kind(Net)]
... |
8 | | }
  | |_^
  |
  = note: this error originates in the macro `$crate::define_errors` which comes from the expansion of the macro `error_forge::define_errors` (in Nightly builds, run with -Z macro-backtrace for more info)