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() |
getJsonBodyaddNote, getAdditionalNotes, getHttpResponse, getMessage, getProjectKey, getSphereRequest, httpSummary, setHttpRequest, setProjectKey, setSphereRequest, setUnderlyingHttpResponseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMessage, hasErrorCode, of, typeReferencepublic ErrorResponseException(ErrorResponse errorResponse)
public Integer getStatusCode()
getStatusCode in interface ErrorResponsegetStatusCode in class SphereServiceExceptionpublic List<? extends SphereError> getErrors()
getErrors in interface ErrorResponse