Class EquinixServiceException

java.lang.Object
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EquinixAuthenticationException, EquinixAuthorizationException, EquinixConflictException, EquinixNotFoundException, EquinixRateLimitException, EquinixServerException

public class EquinixServiceException extends EquinixClientException
Thrown when the Equinix API returns an error HTTP response.

This is the base class for all API error exceptions. It carries the HTTP status code, response headers, request path, and structured error details from the API response body. Specific HTTP status codes are mapped to typed subclasses:

HTTP StatusException Class
401 UnauthorizedEquinixAuthenticationException
403 ForbiddenEquinixAuthorizationException
404 Not FoundEquinixNotFoundException
409 ConflictEquinixConflictException
429 Too Many RequestsEquinixRateLimitException
5xx Server ErrorEquinixServerException

Error Handling


 try {
     Connection conn = fabric.connections().getByUuid("uuid");
 } catch (EquinixNotFoundException e) {
     System.err.println("Not found: " + e.getStatusCode());
 } catch (EquinixServiceException e) {
     System.err.println("API error: " + e.getMessage());
 }
 
Version:
$Id: $Id
Author:
ianjones
See Also: