diff options
Diffstat (limited to 'crates/core/tedge/src/error.rs')
-rw-r--r-- | crates/core/tedge/src/error.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/crates/core/tedge/src/error.rs b/crates/core/tedge/src/error.rs new file mode 100644 index 00000000..3e4bb431 --- /dev/null +++ b/crates/core/tedge/src/error.rs @@ -0,0 +1,23 @@ +#[derive(thiserror::Error, Debug)] +pub enum TEdgeError { + #[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)] + FromPaths(#[from] tedge_utils::paths::PathsError), + + #[error(transparent)] + FromTEdgeConfig(#[from] tedge_config::TEdgeConfigError), + + #[error(transparent)] + FromTEdgeConfigSetting(#[from] tedge_config::ConfigSettingError), + + #[error(transparent)] + FromRumqttClient(#[from] rumqttc::ClientError), +} |