Первый коммит
This commit is contained in:
9
app/core/exceptions.py
Normal file
9
app/core/exceptions.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from app.schemas.common import ModuleName
|
||||
|
||||
|
||||
class AppError(Exception):
|
||||
def __init__(self, code: str, desc: str, module: ModuleName) -> None:
|
||||
super().__init__(desc)
|
||||
self.code = code
|
||||
self.desc = desc
|
||||
self.module = module
|
||||
Reference in New Issue
Block a user