Crate fatality

source ·
Expand description

Expansion for fatal-annotations

Expand #[fatal] annotations on enum variants into two additional enums that can be converted back, or the original split into two.

Stands on the shoulders of thiserror.

Re-exports

Traits

  • Determine the fatality of an error.
  • Converts a flat, yet splitable error into a nested Result<Result<_,Jfyi>, Fatal> error type.
  • Allows to split an error into two types - a fatal and a informational enum error type, that can be further consumed.

Attribute Macros