Add debug and BadRequest error
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
use sea_orm::DbErr;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum ServiceError {
|
||||
NotFound(String),
|
||||
DatabaseError(String),
|
||||
Unauthorized(String),
|
||||
InternalError(String),
|
||||
BadRequest(String),
|
||||
}
|
||||
|
||||
impl From<Box<dyn std::error::Error + Send + Sync + 'static>> for ServiceError {
|
||||
|
||||
Reference in New Issue
Block a user