Class ConcurrentModificationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.vrap.rmf.base.client.error.BaseException
io.vrap.rmf.base.client.ApiHttpException
io.vrap.rmf.base.client.error.ApiClientException
io.vrap.rmf.base.client.error.ConcurrentModificationException
com.commercetools.api.client.error.ConcurrentModificationException
- All Implemented Interfaces:
ErrorResponseException
,Serializable
public class ConcurrentModificationException
extends ConcurrentModificationException
implements ErrorResponseException
Deserializes the response payload as
ErrorResponse
and extracts the currentVersion of the modified resource
if included- See Also:
-
Constructor Summary
ConstructorDescriptionConcurrentModificationException
(int statusCode, String body, ApiHttpHeaders headers, String message, ApiHttpResponse<byte[]> response) ConcurrentModificationException
(int statusCode, String body, ApiHttpHeaders headers, String message, ApiHttpResponse<byte[]> response, ApiHttpRequest request) ConcurrentModificationException
(int statusCode, String body, ApiHttpHeaders headers, String message, ApiHttpResponse<byte[]> response, ApiHttpRequest request, ResponseSerializer serializer) ConcurrentModificationException
(int statusCode, String body, ApiHttpHeaders headers, String message, ApiHttpResponse<byte[]> response, ResponseSerializer serializer) -
Method Summary
Modifier and TypeMethodDescriptionstatic Long
retrieveCurrentVersion
(ErrorResponse errorResponse) Methods inherited from class io.vrap.rmf.base.client.ApiHttpException
getBody, getBodyAs, getHeaders, getMessage, getRequest, getResponse, getStatusCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.commercetools.api.client.error.ErrorResponseException
hasErrorCode
-
Constructor Details
-
ConcurrentModificationException
public ConcurrentModificationException(int statusCode, String body, ApiHttpHeaders headers, String message, ApiHttpResponse<byte[]> response) -
ConcurrentModificationException
public ConcurrentModificationException(int statusCode, String body, ApiHttpHeaders headers, String message, ApiHttpResponse<byte[]> response, ApiHttpRequest request) -
ConcurrentModificationException
public ConcurrentModificationException(int statusCode, String body, ApiHttpHeaders headers, String message, ApiHttpResponse<byte[]> response, ResponseSerializer serializer) -
ConcurrentModificationException
public ConcurrentModificationException(int statusCode, String body, ApiHttpHeaders headers, String message, ApiHttpResponse<byte[]> response, ApiHttpRequest request, ResponseSerializer serializer)
-
-
Method Details
-
getErrorResponse
- Specified by:
getErrorResponse
in interfaceErrorResponseException
-
getCurrentVersion
-
retrieveCurrentVersion
-