genius_rust/error.rs
1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum GeniusError {
5 #[error("{0}")]
6 InternalServerError(String),
7 #[error("Parse error: {0}")]
8 ParseError(String),
9 #[error("Request error: {0}")]
10 RequestError(String),
11 #[error("Unauthorized: {0}")]
12 Unauthorized(String),
13 #[error("Not found: {0}")]
14 NotFound(String),
15}