18 lines
424 B
Rust
18 lines
424 B
Rust
use thiserror::Error;
|
|
|
|
pub mod documents;
|
|
pub mod project_memberships;
|
|
pub mod projects;
|
|
pub mod users;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum DbError {
|
|
#[error("Diesel error: {0}")]
|
|
DieselError(#[from] diesel::result::Error),
|
|
|
|
#[error("Diesel connection error: {0}")]
|
|
ConnectionError(#[from] diesel::ConnectionError),
|
|
|
|
#[error("Connection pool error: {0}")]
|
|
PoolError(#[from] diesel::r2d2::PoolError),
|
|
}
|