pub trait ErrorReport: Error {
// Provided methods
fn as_report(&self) -> String { ... }
fn as_report_context(&self, context: &'static str) -> String { ... }
}
Provided Methods§
Sourcefn as_report(&self) -> String
fn as_report(&self) -> String
Returns a string representation of the error and its source chain.
Sourcefn as_report_context(&self, context: &'static str) -> String
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.