caff_archive/error.rs
1#[derive(Debug, thiserror::Error)]
2pub enum Error {
3 #[error("bad magic in CAFF header")]
4 BadMagic,
5 #[error("empty filename in entry metadata")]
6 EmptyFilename,
7 #[error(transparent)]
8 Io(#[from] std::io::Error),
9 #[error(transparent)]
10 TryFromInt(#[from] std::num::TryFromIntError),
11 #[error(transparent)]
12 Utf8(#[from] std::string::FromUtf8Error),
13 #[error("varint support not implemented")]
14 VarIntSupportNotImplemented,
15}