Expand description
Declarative annotations for fatal
or jfyi
error variants.
Expand #[fatal]
annotations on enum
variants into
two additional enum
s that can be converted back, or
the original split into two. Determination of fatality
can also be forwarded to an inner error that implements
the trait Fatality
.
Stands on the shoulders of thiserror
.
Note: At this time crate fatality
also has to import thiserror
as part of the manifest until
https://github.com/dtolnay/thiserror/issues/167
is resolved.
Re-exports§
pub use thiserror;
Traits§
- Determine the fatality of an error.
- Converts a flat, yet
splitable
error into a nestedResult<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.