Trait brane_shr::errors::ErrorTrace

source ·
pub trait ErrorTrace: Error {
    // Required method
    fn trace(&self) -> ErrorTraceFormatter<'_>;
}
Expand description

Implements a function over a normal Error that prints it and any Error::source() it has.

Required Methods§

source

fn trace(&self) -> ErrorTraceFormatter<'_>

Returns a formatter that writes the error to the given formatter, with any sources it has.

§Returns

A new ErrorTraceFormatter that can write this error and its sources.

Implementors§

source§

impl<T: Error> ErrorTrace for T