pub trait Error: Error {
// Required method
fn help(&self) -> Option<Cow<'_, str>>;
// Provided method
fn span(&self) -> Option<ErrSpan> { ... }
}
Expand description
Unified error interface for all errors in this crate.
Note that the Display
implementation is used for a brief message,
where as Error::help
is used for any clarifying messages.