use std::io;
use thiserror::Error as ThisError;
#[derive(ThisError, Debug)]
#[non_exhaustive]
pub enum Error {
#[error("IO error: {0}")]
Io(#[from] io::Error),
#[error("Zip error: {0}")]
Zip(#[from] zip::result::ZipError),
#[error("Parse error: {0}")]
Parse(String),
#[error("Unknown format")]
UnknownFormat,
#[error("File not found in archive: {0}")]
FileNotFoundInArchive(String),
}