public class BoxAPIResponseException extends BoxAPIException
| Constructor and Description |
|---|
BoxAPIResponseException(String message,
int responseCode,
String bodyString,
Map<String,List<String>> responseHeaders)
Constructs a BoxAPIException that contains detailed message for underlying exception.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage() |
protected void |
setMessage(String message)
The message to return for the API exception.
|
getHeaders, getResponse, getResponseCode, setHeaders, setResponse, setResponseCodeaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic BoxAPIResponseException(String message, int responseCode, String bodyString, Map<String,List<String>> responseHeaders)
message - a message explaining why the error occurred.responseCode - a response code.bodyString - a response body.responseHeaders - response headers.public String getMessage()
getMessage in class Throwableprotected void setMessage(String message)
message - the constructed for the API exception.