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