public class ErrorResponseException extends BadRequestException implements ErrorResponse
A list of error codes can be found on the commercetools website.
httpResponse
Constructor and Description |
---|
ErrorResponseException(ErrorResponse errorResponse) |
Modifier and Type | Method and Description |
---|---|
List<? extends SphereError> |
getErrors() |
Integer |
getStatusCode() |
getJsonBody
addNote, getAdditionalNotes, getHttpResponse, getMessage, getProjectKey, getSphereRequest, httpSummary, setHttpRequest, setProjectKey, setSphereRequest, setUnderlyingHttpResponse
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMessage, hasErrorCode, of, typeReference
public ErrorResponseException(ErrorResponse errorResponse)
public Integer getStatusCode()
getStatusCode
in interface ErrorResponse
getStatusCode
in class SphereServiceException
public List<? extends SphereError> getErrors()
getErrors
in interface ErrorResponse