Crate uni_error

Crate uni_error 

Source

Structs§

Chain
An iterator over the cause chain of an error.
DynError
An error type with an erased kind type. It can be used when you don’t know T or wish to propagate multiple T types. UniError<T> can be recovered via downcasting if T is known.
FakeError
A placeholder error type for downcasting.
StdErrorDynWrapper
A wrapper for a DynError that implements the Error trait. Useful for converting a DynError to a Box<dyn Error + Send + Sync> (and back via downcasting).
StdErrorWrapper
A wrapper for a UniError that implements the Error trait. Useful for converting a UniError to a Box<dyn Error + Send + Sync> (and back via downcasting).
UniError
A custom error type that can be used to return an error with a custom error kind.

Enums§

Cause
An error in the cause chain.
DowncastRef
A reference to a downcasted error.

Traits§

ErrorContext
A trait for wrapping an existing error with a additional context.
ErrorContextDisplay
A trait for wrapping an existing error with a additional context (for Display types).
ResultContext
A trait for wrapping an existing result error with a additional context.
ResultContextDisplay
A trait for wrapping an existing result error with a additional context (for Display types).
UniDisplay
Standard Display trait with Any to allow downcasting.
UniErrorOps
A trait that specifies the operations that can be performed on a UniError.
UniKind
A trait that specifies a custom error kind. Any specified to facilitate downcasting.
UniStdError
Standard Error trait with Any to allow downcasting.

Type Aliases§

DynResult
A result type that specifies a trait object 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.