egdata_manifests_parser/
error.rs1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum Error {
5 #[error("I/O: {0}")]
6 Io(#[from] std::io::Error),
7
8 #[error("zlib-ng: {0}")]
9 Inflate(String),
10
11 #[error("invalid data: {0}")]
12 Invalid(String),
13
14 #[error("encrypted manifests are not supported")]
15 EncryptedManifest,
16
17 #[error("SHA-1 mismatch (corrupted file?)")]
18 Sha1Mismatch,
19
20 #[error("JSON: {0}")]
21 Json(#[from] serde_json::Error),
22
23 #[error("hex: {0}")]
24 Hex(#[from] hex::FromHexError),
25}