1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum HawkError {
5 #[error("I/O error: {0}")]
6 Io(#[from] std::io::Error),
7
8 #[error("Database error: {0}")]
9 Database(String),
10
11 #[error("Config error: {0}")]
12 Config(String),
13
14 #[error("Permission denied: {0}")]
15 Permission(String),
16
17 #[error("Snapshot error: {0}")]
18 Snapshot(String),
19
20 #[error("Vault error: {0}")]
21 Vault(String),
22
23 #[error("Bus error: {0}")]
24 Bus(String),
25
26 #[error("Serialization error: {0}")]
27 Serialization(String),
28
29 #[error("Not found: {0}")]
30 NotFound(String),
31
32 #[error("Invalid manifest: {0}")]
33 InvalidManifest(String),
34}