pub trait ErrorReport: StdError + Sized + 'static {
    // Provided method
    fn report(&self) -> Report<ReportHelper<'_>> { ... }
}
Expand description

Extension trait providing .report() method on concrete errors

This is implemented for types that directly implement std::error::Error + 'static. For types like anyhow::Error that impl AsRef<dyn Error>, use tor_error::Report(err) directly.

Provided Methods§

source

fn report(&self) -> Report<ReportHelper<'_>>

Return an object that displays the error and its causes

Implementors§

source§

impl<E: StdError + Sized + 'static> ErrorReport for E