feat: add new custom 500 exceptions

This commit is contained in:
2026-06-01 15:07:44 +03:00
parent a1b41e8317
commit 35b968d288
8 changed files with 39 additions and 12 deletions

View File

@@ -0,0 +1,8 @@
from src.application.domain.exceptions.application_exceptions import ApplicationException
from typing import Mapping
class JwtErrorException(ApplicationException):
def __init__(self, message: str = 'JWT error occurred', headers: Mapping[str, str] | None = None):
super().__init__(500, message, headers)