hippofish/packages/backend/native-utils/crates/database/src/error.rs

10 lines
232 B
Rust
Raw Normal View History

2023-05-25 14:55:20 +02:00
use sea_orm::error::DbErr;
#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error("The database connections have not been initialized yet")]
Uninitialized,
#[error("ORM error: {0}")]
OrmError(#[from] DbErr),
}