1use thiserror::Error;
2
3#[derive(Error, Debug)]
5pub enum ConfigError {
6 #[error("config file not found: {0}")]
7 ConfigNotFound(String),
8
9 #[error("invalid config: {0}")]
10 InvalidConfig(String),
11
12 #[error("connection '{0}' not found in registry")]
13 ConnectionNotFound(String),
14
15 #[error("duplicate connection name: {0}")]
16 DuplicateConnection(String),
17
18 #[error("profile '{0}' not found")]
19 ProfileNotFound(String),
20
21 #[error("IO error: {0}")]
22 Io(#[from] std::io::Error),
23
24 #[error("hasp error: {0}")]
25 HaspError(String),
26}