public class BoxServerException extends BoxSDKException
| Constructor and Description |
|---|
BoxServerException() |
BoxServerException(BoxServerError error)
Constructor.
|
BoxServerException(String customMessage,
int statusCode)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCustomMessage()
Get the custom error message.
|
BoxServerError |
getError()
Get the API response error.
|
String |
getMessage() |
int |
getStatusCode()
Status code of this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic BoxServerException()
public BoxServerException(String customMessage, int statusCode)
customMessage - messagestatusCode - http status codepublic BoxServerException(BoxServerError error)
result - API response error.public BoxServerError getError()
public String getCustomMessage()
public int getStatusCode()
BoxSDKExceptiongetStatusCode in class BoxSDKExceptionpublic String getMessage()
getMessage in class ThrowableCopyright © 2014. All Rights Reserved.