Trait ErrorReport

Source
pub trait ErrorReport: Error {
    // Provided methods
    fn as_report(&self) -> String { ... }
    fn as_report_context(&self, context: &'static str) -> String { ... }
}

Provided Methods§

Source

fn as_report(&self) -> String

Returns a string representation of the error and its source chain.

Source

fn as_report_context(&self, context: &'static str) -> String

Creates a new root in the error chain and returns a string representation of the error and its source chain.

Implementors§

Source§

impl<T: Error> ErrorReport for T