robotech 1.6.3

Backend service implementation for the RoboTech platform, providing RESTful APIs and business logic for web applications.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use sea_orm::DbErr;
use thiserror::Error;

#[derive(Error, Debug)]
pub enum DbError {
    #[error("Fail to get DB_CONN")]
    GetDbConn(),
    #[error("Fail to set DB_CONN")]
    SetDbConn(),
    #[error("Fail to app database: {0}")]
    Config(String),
    #[error("Fail to connect database: {0}")]
    Connect(DbErr),
}