classics/src/error.rs

14 lines
293 B
Rust
Raw Normal View History

/// error type for the server
#[derive(Debug, thiserror::Error)]
pub enum GeneralError {
#[error(transparent)]
Io(#[from] std::io::Error),
#[error(transparent)]
Json(#[from] serde_json::Error),
#[error("{0}")]
Custom(String),
2024-04-25 00:32:09 -07:00
#[allow(unused)]
#[error("{0}")]
CustomPrivate(String),
}