proxy_pilot/error.rs
1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum PilotError {
5 #[error("configuration error: {0}")]
6 Config(String),
7
8 #[error("proxy core error: {0}")]
9 Core(String),
10
11 #[error("health probe error: {0}")]
12 Probe(String),
13
14 #[error("notification error: {0}")]
15 Notify(String),
16
17 #[error("io error: {0}")]
18 Io(#[from] std::io::Error),
19}
20
21pub type Result<T> = std::result::Result<T, PilotError>;