Files
pay-service/src/application/domain/exceptions/payment_provider_exception.py
2026-05-11 19:50:25 +03:00

13 lines
418 B
Python

from __future__ import annotations
from typing import Mapping
from src.application.domain.exceptions.application_exception import ApplicationException
class PaymentProviderException(ApplicationException):
def __init__(
self,
message: str = 'Payment provider error',
headers: Mapping[str,str] | None = None,
):
super().__init__(status_code=502,message=message,headers=headers)