Class EquinixNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.eqixiac.equinix.core.exception.BaseException
com.eqixiac.equinix.core.exception.EquinixServiceException
com.eqixiac.equinix.core.exception.EquinixNotFoundException
- All Implemented Interfaces:
Serializable
Thrown when the Equinix API returns HTTP 404 Not Found.
This indicates the requested resource (connection, port, device, etc.)
does not exist or is not accessible with the current credentials.
- Author:
- ianjones
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEquinixNotFoundException(String errorMessage) EquinixNotFoundException(String errorMessage, Exception cause) EquinixNotFoundException(String errorMessage, Integer statusCode, String path, Map<String, String> httpHeaders, List<ExceptionDetail> exceptionDetails) EquinixNotFoundException(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 byResponseErrorMapper.EquinixNotFoundException(String errorMessage, Integer statusCode, String path, Map<String, String> httpHeaders, List<ExceptionDetail> exceptionDetails, String correlationId, String responseBodySnippet) Full constructor used byResponseErrorMapper, additionally carrying a truncated snippet of an error body that could not be parsed into details. -
Method Summary
Methods inherited from class EquinixServiceException
getMessageModifier and TypeMethodDescriptionThe summary (which for a mapped HTTP error already ends with the first detail's<code>: <message> (field: <property>)line), followed by the HTTP status, URI and correlation id, then one block per parsedExceptionDetail:Error: <code>: <message> (field: <property>)plus any details, developer message, help and property annotations.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EquinixNotFoundException
-
EquinixNotFoundException
-
EquinixNotFoundException
-
EquinixNotFoundException
public EquinixNotFoundException(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 byResponseErrorMapper.- 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 benull.exceptionDetails- structured error details from the response body; may benull.correlationId- the SDK-generatedX-Correlation-Idof the failed request; may benull.
-
EquinixNotFoundException
public EquinixNotFoundException(String errorMessage, Integer statusCode, String path, Map<String, String> httpHeaders, List<ExceptionDetail> exceptionDetails, String correlationId, String responseBodySnippet) Full constructor used byResponseErrorMapper, 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 benull.exceptionDetails- structured error details from the response body; may benull.correlationId- the SDK-generatedX-Correlation-Idof the failed request; may benull.responseBodySnippet- truncated raw body when no details could be parsed; may benull.
-