mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
11 lines
407 B
Rust
11 lines
407 B
Rust
#[derive(thiserror::Error, Debug, PartialEq, Eq)]
|
|
pub enum Error {
|
|
#[error("Failed to parse string")]
|
|
ParseError(#[from] parse_display::ParseError),
|
|
#[error("Failed to get database connection")]
|
|
DbConnError(#[from] database::error::Error),
|
|
#[error("Database operation error: {0}")]
|
|
DbOperationError(#[from] sea_orm::DbErr),
|
|
#[error("Requested entity not found")]
|
|
NotFound,
|
|
}
|