public class BoxRestException extends WebException
Constructor and Description |
---|
BoxRestException(Exception e)
BoxRestException.
|
BoxRestException(Exception exception,
String message)
BoxRestException.
|
BoxRestException(String message)
BoxRestException.
|
BoxRestException(String message,
Exception e,
int errorCode) |
BoxRestException(String message,
int errorCode)
BoxRestException.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Get the customized exception error code.
|
String |
getMessage() |
getCause, getHelpUrl, getRequestId, getReturnCode, getStackTraceString, getStatus, getStatus, getStatus, getStatusCode, getType, handleError, isSecurityError, newException, newException, newException, setStatus, toResponse, toResponse, toString, toWebModuleResponse, wrap, wrap
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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, int errorCode)
message
- customized exception message.errorCode
- customized exception error code.public BoxRestException(Exception e)
e
- raw exception.public BoxRestException(String message, Exception e, int errorCode)
public String getMessage()
getMessage
in class WebException
public int getErrorCode()
Copyright © 2016 Nuxeo SA. All rights reserved.