aether_core/core/error.rs
1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum AgentError {
5 /// MCP manager operation failed
6 #[error("MCP error: {0}")]
7 McpError(#[from] mcp_utils::client::McpError),
8 /// LLM provider error
9 #[error("LLM error: {0}")]
10 LlmError(#[from] llm::LlmError),
11 /// IO error (file operations, etc.)
12 #[error("IO error: {0}")]
13 IoError(String),
14 /// Generic error for other cases
15 #[error("{0}")]
16 Other(String),
17}
18
19pub type Result<T> = std::result::Result<T, AgentError>;