refactor: divided exceptions into files

This commit is contained in:
2026-05-28 14:13:43 +03:00
parent 41d0fe8aa7
commit fb7856260f
10 changed files with 73 additions and 51 deletions

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