[UPD] Exception handling
This commit is contained in:
7
app/controller/exceptions/exc_01000X_data.py
Normal file
7
app/controller/exceptions/exc_01000X_data.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from .base import LibraryExceptionBase
|
||||
|
||||
#010010
|
||||
class LibraryDataExection(LibraryExceptionBase):
|
||||
def __init__(self, name, error, object_name, data, *, status_code=400):
|
||||
self.code = "010000"
|
||||
super().__init__(name, error, object_name, data, status_code=status_code)
|
||||
Reference in New Issue
Block a user