public class BrightpearlServiceException extends BrightpearlClientException
BrightpearlApiClient
when the Brightpearl API returns a collection of error messages in the JSON response body. The status code of the
response and the error messages returned are provided.| Constructor and Description |
|---|
BrightpearlServiceException(int status,
List<ServiceError> serviceErrors) |
| Modifier and Type | Method and Description |
|---|---|
List<ServiceError> |
getServiceErrors()
Returns service errors from the response.
|
int |
getStatus()
Returns the HTTP status of the response received.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic BrightpearlServiceException(int status,
List<ServiceError> serviceErrors)
public int getStatus()
public List<ServiceError> getServiceErrors()
Copyright © 2014. All Rights Reserved.