Implement task API with input validation; implement error handling; refactoring
This commit is contained in:
parent
19d264a03b
commit
50aff05614
24 changed files with 612 additions and 131 deletions
9
tofu_api/repositories/exceptions.py
Normal file
9
tofu_api/repositories/exceptions.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
from tofu_api.common.exceptions import AppException
|
||||
|
||||
|
||||
class ObjectNotFoundException(AppException):
|
||||
"""
|
||||
Exception raised when a database object was not found, i.e. does not exist or is inaccessible for the user.
|
||||
"""
|
||||
status_code = 404
|
||||
code = 'not_found'
|
||||
Loading…
Add table
Add a link
Reference in a new issue