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, setResponseCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BoxAPIResponseException(String message, BoxAPIResponse responseObj)
message
- a message explaining why the error occurred.responseObj
- a response object from the server.public String getMessage()
getMessage
in class Throwable
protected void setMessage(String message)
message
- the constructed for the API exception.