brinkhaustools/error.rs
/// Errors returned by brinkhaustools components.
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("Settings I/O: {0}")]
SettingsIo(#[from] std::io::Error),
#[error("JSON: {0}")]
Json(#[from] serde_json::Error),
#[error("Logging: {0}")]
Logging(String),
}
/// Convenience alias for `std::result::Result<T, Error>`.
pub type Result<T> = std::result::Result<T, Error>;