Module errors

Module errors 

Source
Expand description

This module re-exports anyhow types. Use bail! for early returns and context()/with_context() on Result to add context (replacing old chain_err()).

Macros§

anyhow
Construct an ad-hoc error from a string or existing non-anyhow error value.
bail
Return early with an error.

Structs§

Error
The Error type, a wrapper around a dynamic error type.

Traits§

Context
Provides the context method for Result.

Type Aliases§

Result
Result<T, Error>