Type Definition flex_error::tracer_impl::anyhow::AnyhowTracer[][src]

type AnyhowTracer = Error;
Expand description

Type alias to anyhow::Error

Trait Implementations

impl ErrorMessageTracer for AnyhowTracer[src]

fn new_message<E: Display>(err: &E) -> Self[src]

Creates a new error trace, starting from a source error detail that implements Display. Read more

fn add_message<E: Display>(self, err: &E) -> Self[src]

Adds new error detail to an existing trace.

fn as_error(&self) -> Option<&(dyn Error + 'static)>[src]

If the std feature is enabled, the error tracer also provides method to optionally converts itself to a dyn Error. Read more

impl<E> ErrorTracer<E> for AnyhowTracer where
    E: Error + Send + Sync + 'static, 
[src]

fn new_trace(err: E) -> Self[src]

Create a new error trace from E, also taking ownership of it. Read more

fn add_trace(self, err: E) -> Self[src]

Add a new error trace from E. In the current underlying implementation, this is effectively still has the same behavior as ErrorMessageTracer::add_message. This is because eyre and anyhow do not support adding new set of backtraces to an existing trace. So effectively, currently the error tracers can track at most one backtrace coming from the original error source. Read more