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