Crate uni_error

Crate uni_error 

Source
Expand description

A simple, universal error type for Rust

Re-exports§

pub use cause::Cause;
pub use convert::ErrorContext;
pub use convert::ErrorContextDisplay;
pub use convert::MapKind;
pub use convert::ResultContext;
pub use convert::ResultContextDisplay;

Modules§

cause
Module to analyze the cause chain of an error.
convert
Module for converting between error types.

Structs§

UniError
A custom error type that can be used to return an error with a custom error kind.

Traits§

UniKind
A trait that specifies a custom error kind. Any specified to facilitate downcasting.
UniKindCode
A UniKind that has a typed code.
UniKindCodes
A UniKind that has a two typed codes.

Type Aliases§

DynCodeError
A dynamic error type that specifies a dynamic kind and code.
DynCodeResult
A result type that specifies a dynamic kind and code.
DynCodesError
A dynamic error type that specifies a dynamic kind and two codes.
DynCodesResult
A result type that specifies a dynamic kind and two codes.
DynError
A dynamic error type that specifies a dynamic kind.
DynResult
A result type that specifies a dynamic kind.
SimpleError
An error type that is used when there is no kind.
SimpleResult
A result type that specifies no kind.
UniResult
A result type that specifies a customkind.