ultralight-errors 0.1.5

A collection of error types for Ultralight crates.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

#[derive(Debug, Error)]
pub enum UltralightError {
    #[error("Request error")]
    RequestError(#[from] reqwest::Error),
    #[error("Decompression error")]
    DecompressionError(#[from] sevenz_rust::Error),
    #[error("Failed to get environment variable")]
    EnvVarError(#[from] std::env::VarError),
    #[error("IO error")]
    IoError(#[from] std::io::Error),
}

pub type UltralightResult<T> = Result<T, UltralightError>;