Class EquinixConflictException
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.EquinixConflictException
- All Implemented Interfaces:
Serializable
Thrown when the Equinix API returns HTTP 409 Conflict.
This indicates the request conflicts with the current state of the resource,
such as attempting to create a resource that already exists or modifying a
resource that has been concurrently updated.
- Author:
- ianjones
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEquinixConflictException(String errorMessage) EquinixConflictException(String errorMessage, Exception cause) EquinixConflictException(String errorMessage, Integer statusCode, String path, Map<String, String> httpHeaders, List<ExceptionDetail> exceptionDetails) EquinixConflictException(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.EquinixConflictException(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
-
EquinixConflictException
-
EquinixConflictException
-
EquinixConflictException
-
EquinixConflictException
public EquinixConflictException(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.
-
EquinixConflictException
public EquinixConflictException(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.
-