use thiserror::Error;
#[derive(Debug, Error)]
pub enum PilotError {
#[error("configuration error: {0}")]
Config(String),
#[error("proxy core error: {0}")]
Core(String),
#[error("health probe error: {0}")]
Probe(String),
#[error("notification error: {0}")]
Notify(String),
#[error("io error: {0}")]
Io(#[from] std::io::Error),
}
pub type Result<T> = std::result::Result<T, PilotError>;