1pub mod config;
4pub mod manager;
5pub mod version;
6pub mod error_utils;
7
8pub use config::*;
9pub use manager::*;
10pub use version::*;
11pub use error_utils::*;
12
13use thiserror::Error;
14
15#[derive(Error, Debug)]
16pub enum ConfigError {
17 #[error("Storage error: {0}")]
18 StorageError(#[from] llm_config_storage::StorageError),
19
20 #[error("Crypto error: {0}")]
21 CryptoError(#[from] llm_config_crypto::CryptoError),
22
23 #[error("Validation error: {0}")]
24 ValidationError(String),
25
26 #[error("Not found: {0}")]
27 NotFound(String),
28
29 #[error("Already exists: {0}")]
30 AlreadyExists(String),
31
32 #[error("Invalid operation: {0}")]
33 InvalidOperation(String),
34}
35
36pub type Result<T> = std::result::Result<T, ConfigError>;