Class EquinixRateLimitException

All Implemented Interfaces:
Serializable

public class EquinixRateLimitException extends EquinixServiceException
Thrown when the Equinix API returns HTTP 429 Too Many Requests. This indicates the client has exceeded the API rate limit. Implement exponential backoff and retry logic when catching this exception.
Author:
ianjones
See Also:
  • Constructor Details

    • EquinixRateLimitException

      public EquinixRateLimitException(String errorMessage)
    • EquinixRateLimitException

      public EquinixRateLimitException(String errorMessage, Exception cause)
    • EquinixRateLimitException

      public EquinixRateLimitException(String errorMessage, Integer statusCode, String path, Map<String,String> httpHeaders, List<ExceptionDetail> exceptionDetails)
    • EquinixRateLimitException

      public EquinixRateLimitException(String errorMessage, Integer statusCode, String path, Map<String,String> httpHeaders, List<ExceptionDetail> exceptionDetails, String correlationId)
      Full constructor carrying the SDK-generated request correlation id; used by ResponseErrorMapper.
      Parameters:
      errorMessage - a human-readable summary message.
      statusCode - the HTTP status code returned by the API.
      path - the request URI that produced the error.
      httpHeaders - relevant response headers; may be null.
      exceptionDetails - structured error details from the response body; may be null.
      correlationId - the SDK-generated X-Correlation-Id of the failed request; may be null.
    • EquinixRateLimitException

      public EquinixRateLimitException(String errorMessage, Integer statusCode, String path, Map<String,String> httpHeaders, List<ExceptionDetail> exceptionDetails, String correlationId, String responseBodySnippet)
      Full constructor used by ResponseErrorMapper, additionally carrying a truncated snippet of an error body that could not be parsed into details.
      Parameters:
      errorMessage - a human-readable summary message.
      statusCode - the HTTP status code returned by the API.
      path - the request URI that produced the error.
      httpHeaders - relevant response headers; may be null.
      exceptionDetails - structured error details from the response body; may be null.
      correlationId - the SDK-generated X-Correlation-Id of the failed request; may be null.
      responseBodySnippet - truncated raw body when no details could be parsed; may be null.