bencode inspired tight self describing serialization format
Diffstat (limited to 'src/error.rs')
| -rw-r--r-- | src/error.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index 6f70009..7870161 100644 --- a/src/error.rs +++ b/src/error.rs @@ -32,6 +32,12 @@ pub enum Error { NotTag(u8), #[error("out of range")] Overflow, + #[error( + "the length provided in the data stream {0} is different from the hint serde provided {1}" + )] + IncoherentLen(usize, usize), + #[error(transparent)] + TryFromIntError(#[from] std::num::TryFromIntError), } impl serde::ser::Error for Error { |