public class BoxAPIResponseException extends BoxAPIException
| Constructor and Description |
|---|
BoxAPIResponseException(String message,
BoxAPIResponse responseObj)
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, BoxAPIResponse responseObj)
message - a message explaining why the error occurred.responseObj - a response object from the server.protected void setMessage(String message)
message - the constructed for the API exception.public String getMessage()
getMessage in class Throwable