Added InvalidMessage error type

This commit is contained in:
Zachary Sunforge
2024-06-25 12:48:57 -07:00
parent c5257dd827
commit 63d97b4b3b
2 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,7 @@ members = [
]
[workspace.package]
version = "0.3.1"
version = "0.3.2"
edition = "2021"
repository = "https://git.bfpower.io/BFPOWER/physical"
readme = "README.md"

View File

@ -1,7 +1,10 @@
/// Indicates the transducer value is statically known to be impossible.
/// Indicates the transducer value is known to be impossible.
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub struct InvalidValue;
/// Indicates that the encoded data is not valid for the type.
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub struct InvalidEncoding;
/// An error that it is likely impossible to recover from. This error should only be created in
/// situations where attempts to recover have already been attempted and have failed. Error handling
/// should consist of attempting to alert another system for maintenance and attempting to shut down