mirror of
https://github.com/zyllian/classics.git
synced 2025-01-18 11:47:14 -08:00
13 lines
293 B
Rust
13 lines
293 B
Rust
/// 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),
|
|
#[allow(unused)]
|
|
#[error("{0}")]
|
|
CustomPrivate(String),
|
|
}
|