Skip to main content

Module error

Module error 

Source
Expand description

Error types for the Agent system

This module defines custom error types using thiserror. These errors provide clear, user-friendly messages while preserving the underlying error chain for debugging.

§Usage

use codive_core::AgentError;

fn load_config(path: &std::path::Path) -> Result<(), AgentError> {
    if !path.exists() {
        return Err(AgentError::ConfigNotFound {
            path: path.to_path_buf(),
        });
    }
    Ok(())
}

Enums§

AgentError
Errors that can occur in the Agent system