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§
sourcefn trace(&self) -> ErrorTraceFormatter<'_>
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.