diff options
Diffstat (limited to 'crates/core/tedge_mapper/src/sm_c8y_mapper/error.rs')
-rw-r--r-- | crates/core/tedge_mapper/src/sm_c8y_mapper/error.rs | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/crates/core/tedge_mapper/src/sm_c8y_mapper/error.rs b/crates/core/tedge_mapper/src/sm_c8y_mapper/error.rs deleted file mode 100644 index e3d96cab..00000000 --- a/crates/core/tedge_mapper/src/sm_c8y_mapper/error.rs +++ /dev/null @@ -1,55 +0,0 @@ -use c8y_smartrest::error::{SmartRestDeserializerError, SmartRestSerializerError}; - -#[derive(thiserror::Error, Debug)] -pub enum SMCumulocityMapperError { - #[error("Invalid MQTT Message.")] - InvalidMqttMessage, - - #[error(transparent)] - InvalidTopicError(#[from] agent_interface::TopicError), - - #[error(transparent)] - InvalidThinEdgeJson(#[from] agent_interface::SoftwareError), - - #[error(transparent)] - FromElapsed(#[from] tokio::time::error::Elapsed), - - #[error(transparent)] - FromMqttClient(#[from] mqtt_channel::MqttError), - - #[error(transparent)] - FromReqwest(#[from] reqwest::Error), - - #[error(transparent)] - FromSmartRestSerializer(#[from] SmartRestSerializerError), - - #[error(transparent)] - FromSmartRestDeserializer(#[from] SmartRestDeserializerError), - - #[error(transparent)] - FromTedgeConfig(#[from] tedge_config::ConfigSettingError), - - #[error(transparent)] - FromTimeFormat(#[from] time::error::Format), - - #[error(transparent)] - FromTimeParse(#[from] time::error::Parse), - - #[error("Invalid date in file name: {0}")] - InvalidDateInFileName(String), - - #[error("Invalid path. Not UTF-8.")] - InvalidUtf8Path, - - #[error(transparent)] - FromIo(#[from] std::io::Error), - - #[error("Request timed out")] - RequestTimeout, - - #[error("Operation execution failed: {0}")] - ExecuteFailed(String), - - #[error("An unknown operation template: {0}")] - UnknownOperation(String), -} |