Skip to main content

ray_dashboard_sdk/
error.rs

1use thiserror::Error;
2
3pub type Result<T> = std::result::Result<T, Error>;
4
5#[derive(Debug, Error)]
6pub enum Error {
7    #[error("IO Error: {0}")]
8    IO(#[from] std::io::Error),
9    #[error("Request Error: {0}")]
10    Request(#[from] reqwest::Error),
11    #[error("URL Error: {0}")]
12    UrlParse(#[from] url::ParseError),
13    #[error("Zip Error: {0}")]
14    Zip(#[from] zip::result::ZipError),
15    #[error("Generic Error: {0}")]
16    Generic(String),
17}