Skip to main content

IntoCliError

Trait IntoCliError 

Source
pub trait IntoCliError {
    // Required methods
    fn into_cli_error(self) -> CliError;
    fn with_category(self, category: ErrorCategory) -> CliError;
}
Expand description

Extension trait for converting errors to CliError with category inference.

Required Methods§

Source

fn into_cli_error(self) -> CliError

Convert to a CliError, inferring the category from the error message.

Source

fn with_category(self, category: ErrorCategory) -> CliError

Convert to a CliError with an explicit category.

Implementors§