public class BoxServerException extends BoxSDKException
| Modifier | Constructor and Description |
|---|---|
protected |
BoxServerException()
For jackson parser use only.
|
|
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, toStringprotected BoxServerException()
public BoxServerException(String customMessage, int statusCode)
customMessage - messagestatusCode - http status codepublic BoxServerException(BoxServerError error)
error - 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.