python_infrastructure_exceptions.external_services¶
External service infrastructure exceptions.
Classes¶
External service/API infrastructure error. |
Module Contents¶
- class python_infrastructure_exceptions.external_services.ExternalServiceError(message: str, service_name: str = None, details: str = None, status_code: int = None)¶
Bases:
python_infrastructure_exceptions.base.InfrastructureExceptionExternal 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”)
- service_name = None¶
- status_code = None¶