public class BrightpearlHttpException extends BrightpearlClientException
Subclass of BrightpearlClientException thrown when a request fails due to an HTTP transport error, and when a
response is received but cannot be parsed into the type expected. Instances contain a ClientErrorCode, which
gives further information about the cause of the error.
This exception is not thrown when a response was received from Brightpearl with an error status code and error messages
in a well-formed JSON body - in this case, BrightpearlServiceException is thrown.
| Constructor and Description |
|---|
BrightpearlHttpException(ClientErrorCode clientErrorCode) |
BrightpearlHttpException(ClientErrorCode clientErrorCode,
Exception e) |
BrightpearlHttpException(ClientErrorCode clientErrorCode,
String message) |
| Modifier and Type | Method and Description |
|---|---|
ClientErrorCode |
getClientErrorCode() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic BrightpearlHttpException(ClientErrorCode clientErrorCode)
public BrightpearlHttpException(ClientErrorCode clientErrorCode, String message)
public BrightpearlHttpException(ClientErrorCode clientErrorCode, Exception e)
public ClientErrorCode getClientErrorCode()
Copyright © 2014. All Rights Reserved.