error-forge 1.2.0

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!: variant `Refused` needs a `#[kind(Name, ...)]` attribute
 --> tests/ui/fail/define_errors_missing_kind.rs:1:1
  |
1 | / error_forge::define_errors! {
2 | |     pub enum NetError {
3 | |         #[kind(Net)]
4 | |         Timeout,
... |
9 | | }
  | |_^
  |
  = 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)