Implement task API with input validation; implement error handling; refactoring

This commit is contained in:
Lexi / Zoe 2022-09-23 20:38:34 +02:00
parent 19d264a03b
commit 50aff05614
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
24 changed files with 612 additions and 131 deletions

View 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'