Refactors Services and Initial Test Implementation
This commit is contained in:
0
storage_service/utils/exceptions/__init__.py
Normal file
0
storage_service/utils/exceptions/__init__.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from fastapi import HTTPException, status
|
||||
|
||||
|
||||
class FileNotFoundException(HTTPException):
|
||||
def __init__(self, message: str):
|
||||
super().__init__(
|
||||
status.HTTP_400_BAD_REQUEST, detail=message
|
||||
)
|
||||
Reference in New Issue
Block a user