diff options
Diffstat (limited to 'crates/common/tedge_config/src/error.rs')
-rw-r--r-- | crates/common/tedge_config/src/error.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/crates/common/tedge_config/src/error.rs b/crates/common/tedge_config/src/error.rs new file mode 100644 index 00000000..f1e23642 --- /dev/null +++ b/crates/common/tedge_config/src/error.rs @@ -0,0 +1,20 @@ +#[derive(thiserror::Error, Debug)] +pub enum TEdgeConfigError { + #[error("TOML parse error")] + FromTOMLParse(#[from] toml::de::Error), + + #[error("TOML serialization error")] + FromInvalidTOML(#[from] toml::ser::Error), + + #[error("I/O error")] + FromIo(#[from] std::io::Error), + + #[error(transparent)] + FromConfigSetting(#[from] crate::ConfigSettingError), + + #[error(transparent)] + FromInvalidConfigUrl(#[from] crate::models::InvalidConnectUrl), + + #[error("Config file not found: {0}")] + ConfigFileNotFound(std::path::PathBuf), +} |