public class BoxServerException extends BoxSDKException
| Modifier | Constructor and Description |
|---|---|
protected |
BoxServerException()
For jackson parser use only.
|
|
BoxServerException(BoxServerError error)
Constructor.
|
|
BoxServerException(java.lang.String customMessage,
int statusCode)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCustomMessage()
Get the custom error message.
|
BoxServerError |
getError()
Get the API response error.
|
java.lang.String |
getMessage() |
int |
getStatusCode()
Status code of this exception.
|
protected BoxServerException()
public BoxServerException(java.lang.String customMessage,
int statusCode)
customMessage - messagestatusCode - http status codepublic BoxServerException(BoxServerError error)
error - API response error.public BoxServerError getError()
public java.lang.String getCustomMessage()
public int getStatusCode()
BoxSDKExceptiongetStatusCode in class BoxSDKExceptionpublic java.lang.String getMessage()
getMessage in class java.lang.Throwable