Module error

Module error 

Source
Expand description

Error handling for dynamic-cli

This module provides a hierarchical error system with clear and contextual messages to facilitate debugging.

§Error Types

§Example

use dynamic_cli::error::{DynamicCliError, ConfigError};

fn load_config() -> Result<(), DynamicCliError> {
    Err(ConfigError::FileNotFound {
        path: "config.yaml".into(),
    }.into())
}

Enums§

ConfigError
Errors related to loading and parsing the configuration file
DynamicCliError
Main error for the dynamic-cli framework
ExecutionError
Errors during command execution
ParseError
Errors when parsing user commands
RegistryError
Errors related to the command registry
ValidationError
Errors during argument validation

Functions§

display_error
Display an error in a user-friendly way to the terminal
find_similar_strings
Find similar strings for suggestions
format_error
Format an error with coloring

Type Aliases§

Result
Specialized Result type for dynamic-cli