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§
Sourcefn into_cli_error(self) -> CliError
fn into_cli_error(self) -> CliError
Convert to a CliError, inferring the category from the error message.
Sourcefn with_category(self, category: ErrorCategory) -> CliError
fn with_category(self, category: ErrorCategory) -> CliError
Convert to a CliError with an explicit category.