summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 98f337e..5833f2d 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -25,12 +25,27 @@ pub enum Error {
/// The associated byte sequence does not correspond to a valid Roughtime tag.
InvalidTag(Box<[u8]>),
+ /// Invalid number of tags specified
+ InvalidNumTags(u32),
+
+ /// Tag value length exceeds length of source bytes
+ InvalidValueLength(Tag, u32),
+
/// Encoding failed. The associated `std::io::Error` should provide more information.
EncodingFailure(std::io::Error),
/// Request was less than 1024 bytes
RequestTooShort,
+ /// Offset was not 32-bit aligned
+ InvalidAlignment(u32),
+
+ /// Offset is outside of valid message range
+ InvalidOffsetValue(u32),
+
+ /// Could not convert bytes to message because bytes were too short
+ MessageTooShort,
+
/// Otherwise invalid request
InvalidRequest,
}