refactor: divided exceptions into files
This commit is contained in:
8
src/application/domain/exceptions/not_found_exception.py
Normal file
8
src/application/domain/exceptions/not_found_exception.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from application.domain.exceptions.application_exceptions import ApplicationException
|
||||
|
||||
from typing import Mapping
|
||||
|
||||
|
||||
class NotFoundException(ApplicationException):
|
||||
def __init__(self, message: str = 'Not found', headers: Mapping[str, str] | None = None):
|
||||
super().__init__(404, message, headers)
|
||||
Reference in New Issue
Block a user