1
2
3
4
5
6
7
8
9
10
11
12
13
14
use thiserror::Error;

/// This is a csv zip maker error.
#[derive(Error, Debug)]
pub enum CsvZipError {
    #[error("io error {0}")]
    Io(#[from] std::io::Error),

    #[error("csv error {0}")]
    Csv(#[from] csv::Error),

    #[error("zip error {0}")]
    Zip(#[from] zip::result::ZipError),
}