aico/
exceptions.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum AicoError {
5    #[error("Configuration error: {0}")]
6    Configuration(String),
7
8    #[error("Session error: {0}")]
9    Session(String),
10
11    #[error("Session integrity error: {0}")]
12    SessionIntegrity(String),
13
14    #[error("Invalid input: {0}")]
15    InvalidInput(String),
16
17    #[error("IO error: {0}")]
18    Io(#[from] std::io::Error),
19
20    #[error("Serialization error: {0}")]
21    Serialization(#[from] serde_json::Error),
22
23    #[error("LLM Provider error: {0}")]
24    Provider(String),
25}