python_infrastructure_exceptions.external_services ================================================== .. py:module:: python_infrastructure_exceptions.external_services .. autoapi-nested-parse:: External service infrastructure exceptions. Classes ------- .. autoapisummary:: python_infrastructure_exceptions.external_services.ExternalServiceError Module Contents --------------- .. py:class:: ExternalServiceError(message: str, service_name: str = None, details: str = None, status_code: int = None) Bases: :py:obj:`python_infrastructure_exceptions.base.InfrastructureException` External service/API infrastructure error. Use for: - Third-party API timeouts - HTTP request failures - OAuth/authentication failures - Rate limiting - Service unavailable Examples: raise ExternalServiceError("Stripe API timeout", service_name="stripe") raise ExternalServiceError("SendGrid rate limit", service_name="sendgrid", details="429 Too Many Requests") raise ExternalServiceError("OAuth token expired", service_name="google") .. py:attribute:: service_name :value: None .. py:attribute:: status_code :value: None