ultralight_errors/lib.rs
1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum UltralightError {
5 #[error("Request error")]
6 RequestError(#[from] reqwest::Error),
7 #[error("Decompression error")]
8 DecompressionError(#[from] sevenz_rust::Error),
9 #[error("Failed to get environment variable")]
10 EnvVarError(#[from] std::env::VarError),
11 #[error("IO error")]
12 IoError(#[from] std::io::Error),
13}
14
15pub type UltralightResult<T> = Result<T, UltralightError>;