flow_record_common/
error.rsuse thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("expected an ext value")]
ExpectedExtValue,
#[error("invalid ext type id: {0}")]
InvalidExtTypeId(i8),
#[error("invalid mode string: '{0}'")]
InvalidModeString(String),
#[error(transparent)]
Decode(#[from] rmpv::decode::Error),
#[error(transparent)]
Encode(#[from] rmpv::encode::Error),
#[error(transparent)]
BinRW(#[from] binrw::Error),
#[error(transparent)]
TryFromIntError(#[from] std::num::TryFromIntError),
}