nihility_config/error.rs
1#[derive(thiserror::Error, Debug)]
2pub enum NihilityConfigError {
3 #[error("IO error: {0}")]
4 IO(#[from] std::io::Error),
5 #[cfg(feature = "json_config")]
6 #[error("JSON error: {0}")]
7 JSON(#[from] serde_json::Error),
8 #[cfg(feature = "toml_config")]
9 #[error("Toml Deserialize error: {0}")]
10 TomlDe(#[from] toml::de::Error),
11 #[cfg(feature = "toml_config")]
12 #[error("TOML Serialization error: {0}")]
13 TomlSer(#[from] toml::ser::Error),
14}