Crate error_report

Source

Structs§

CleanedErrorText
An iterator that removes duplicated error messages from errors.
Ref
Ref holds an error type that is AsRef<dyn Error>, allowing it to be used with Report without having to implement AsRefError on it.
Report
Report prints an error and all its sources.

Traits§

AsRefError
AsRefError is needed because anyhow::Error only implements AsRef<dyn Error>, not Error, but &dyn Error does not implement AsRef<dyn Error> because AsRef doesn’t have a blanket implementation (https://doc.rust-lang.org/std/convert/trait.AsRef.html#reflexivity).
CleanedErrors
Provides the cleaned_errors method on errors, which returns an iterator that removes duplicated error messages from the error and its sources.
Reportable
Provides the report method for std::error::Error, converting the error to a Report.