flow_record_common/
error.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum Error {
5    #[error("expected an ext value")]
6    ExpectedExtValue,
7
8    #[error("invalid ext type id: {0}")]
9    InvalidExtTypeId(i8),
10
11    #[error("invalid mode string: '{0}'")]
12    InvalidModeString(String),
13
14    #[error(transparent)]
15    Decode(#[from] rmpv::decode::Error),
16
17    #[error(transparent)]
18    Encode(#[from] rmpv::encode::Error),
19
20    #[error(transparent)]
21    BinRW(#[from] binrw::Error),
22
23    #[error(transparent)]
24    TryFromIntError(#[from] std::num::TryFromIntError),
25}