sos_archive/error.rs
1use thiserror::Error;
2
3/// Errors generated by the library.
4#[derive(Debug, Error)]
5pub enum Error {
6 /// Errors generated by the ZIP library.
7 #[error(transparent)]
8 AsyncZip(#[from] async_zip::error::ZipError),
9
10 /// Errors generated by the IO module.
11 #[error(transparent)]
12 Io(#[from] std::io::Error),
13
14 /// Error generated by the JSON library.
15 #[error(transparent)]
16 Json(#[from] serde_json::Error),
17}