Class ApiHttpExceptionFactory
java.lang.Object
com.commercetools.api.client.error.ApiHttpExceptionFactory
- All Implemented Interfaces:
HttpExceptionFactory
Creates an exception bases on the status code of the
ApiHttpResponse
with module specific exception for
BadRequestException
and ConcurrentModificationException
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateClientException
(ApiHttpRequest request, ApiHttpResponse<byte[]> response) static HttpExceptionFactory
of
(ResponseSerializer serializer) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.error.HttpExceptionFactory
create, createServerException
-
Constructor Details
-
ApiHttpExceptionFactory
-
-
Method Details
-
getResponseSerializer
- Specified by:
getResponseSerializer
in interfaceHttpExceptionFactory
-
createClientException
public ApiHttpException createClientException(ApiHttpRequest request, ApiHttpResponse<byte[]> response) - Specified by:
createClientException
in interfaceHttpExceptionFactory
-
of
-