public class BoxRestException extends BoxSDKException
| Constructor and Description |
|---|
BoxRestException(Exception e)
BoxRestException.
|
BoxRestException(Exception exception,
String message)
BoxRestException.
|
BoxRestException(String message)
BoxRestException.
|
BoxRestException(String message,
String errorCode)
BoxRestException.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorCode()
Get the customized exception error code.
|
String |
getMessage() |
getStatusCodeaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic BoxRestException(String message)
message - Message of the exception.public BoxRestException(Exception exception, String message)
exception - raw exception.message - customized exception message.public BoxRestException(String message, String errorCode)
message - customized exception message.errorCode - customized exception error code.public BoxRestException(Exception e)
e - raw exception.public String getMessage()
getMessage in class Throwablepublic String getErrorCode()
Copyright © 2014. All Rights Reserved.