ErrorFormatter

Trait ErrorFormatter 

Source
pub trait ErrorFormatter: Send + Sync {
    // Required method
    fn format_error(&self, error: &Error) -> Cow<'_, str>;
}
Expand description

Formats an error into a user-facing description. This allows extracted components to present consistent error messaging without depending on the CLI presentation layer.

Required Methods§

Source

fn format_error(&self, error: &Error) -> Cow<'_, str>

Render the error into a user-facing string.

Implementors§