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]
impl ErrorMessageTracer for AnyhowTracer
[src]fn new_message<E: Display>(err: &E) -> Self
[src]
fn new_message<E: Display>(err: &E) -> Self
[src]fn add_message<E: Display>(self, err: &E) -> Self
[src]
fn add_message<E: Display>(self, err: &E) -> Self
[src]Adds new error detail to an existing trace.
impl<E> ErrorTracer<E> for AnyhowTracer where
E: Error + Send + Sync + 'static,
[src]
impl<E> ErrorTracer<E> for AnyhowTracer where
E: Error + Send + Sync + 'static,
[src]fn new_trace(err: E) -> Self
[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]
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