ErrorFormatter

Trait ErrorFormatter 

Source
pub trait ErrorFormatter: Send {
    // Required method
    fn format_error(&self, error: &Error, shell: &Shell) -> String;
}
Expand description

Trait implementable by consumers of this crate to customize formatting errors into displayable text.

Required Methods§

Source

fn format_error(&self, error: &Error, shell: &Shell) -> String

Format the given error for display within the context of the provided shell.

§Arguments
  • error - The error to format.
  • shell - The shell in which the error occurred.

Implementors§