NuxeoException
instead.@Deprecated public class WebException extends javax.ws.rs.WebApplicationException
Modifier and Type | Field and Description |
---|---|
protected Throwable |
cause
Deprecated.
|
protected static org.apache.commons.logging.Log |
log
Deprecated.
|
protected String |
message
Deprecated.
|
protected int |
status
Deprecated.
|
protected String |
type
Deprecated.
|
Modifier | Constructor and Description |
---|---|
|
WebException()
Deprecated.
|
|
WebException(int status)
Deprecated.
|
|
WebException(javax.ws.rs.core.Response.Status status)
Deprecated.
|
|
WebException(javax.ws.rs.core.Response response)
Deprecated.
|
|
WebException(String message)
Deprecated.
|
|
WebException(String message,
int code)
Deprecated.
|
|
WebException(String message,
Throwable cause)
Deprecated.
|
|
WebException(String message,
Throwable cause,
int status)
Deprecated.
|
protected |
WebException(Throwable cause)
Deprecated.
|
protected |
WebException(Throwable cause,
int status)
Deprecated.
|
protected |
WebException(Throwable cause,
javax.ws.rs.core.Response.Status status)
Deprecated.
Use WebException.wrap() and not the constructor.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Deprecated.
|
String |
getHelpUrl()
Deprecated.
|
String |
getMessage()
Deprecated.
|
String |
getRequestId()
Deprecated.
|
int |
getReturnCode()
Deprecated.
|
String |
getStackTraceString()
Deprecated.
|
int |
getStatus()
Deprecated.
|
static int |
getStatus(Throwable cause)
Deprecated.
Tries to find the best matching HTTP status for the given exception.
|
static int |
getStatus(Throwable cause,
int depth)
Deprecated.
|
int |
getStatusCode()
Deprecated.
|
String |
getType()
Deprecated.
|
static Object |
handleError(javax.ws.rs.WebApplicationException e)
Deprecated.
|
static boolean |
isSecurityError(Throwable t)
Deprecated.
|
static WebException |
newException(String message,
Throwable cause)
Deprecated.
|
static WebException |
newException(String message,
Throwable cause,
int status)
Deprecated.
|
static WebException |
newException(Throwable cause)
Deprecated.
|
void |
setStatus(int status)
Deprecated.
|
javax.ws.rs.core.Response |
toResponse()
Deprecated.
Handle if needed custom error webengine module handler.
|
static javax.ws.rs.core.Response |
toResponse(Throwable t)
Deprecated.
|
static String |
toString(Throwable t)
Deprecated.
|
protected javax.ws.rs.core.Response |
toWebModuleResponse(WebContext ctx)
Deprecated.
Ask Webengine module for custom error handling and response.
|
static WebException |
wrap(String message,
Throwable exception)
Deprecated.
|
static WebException |
wrap(Throwable e)
Deprecated.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected static final org.apache.commons.logging.Log log
protected int status
public WebException()
public WebException(javax.ws.rs.core.Response response)
public WebException(int status)
public WebException(javax.ws.rs.core.Response.Status status)
protected WebException(Throwable cause, javax.ws.rs.core.Response.Status status)
protected WebException(Throwable cause, int status)
protected WebException(Throwable cause)
public WebException(String message)
public WebException(String message, int code)
public WebException(String message, Throwable cause, int status)
public WebException(String message, Throwable cause)
public static WebException newException(String message, Throwable cause)
public static WebException newException(Throwable cause)
public static WebException newException(String message, Throwable cause, int status)
public static WebException wrap(Throwable e)
public static WebException wrap(String message, Throwable exception)
public static Object handleError(javax.ws.rs.WebApplicationException e)
public static int getStatus(Throwable cause)
public static boolean isSecurityError(Throwable t)
@Deprecated public static javax.ws.rs.core.Response toResponse(Throwable t)
public String getMessage()
getMessage
in class Throwable
public int getStatusCode()
public String getStackTraceString()
@Deprecated public int getReturnCode()
public javax.ws.rs.core.Response toResponse()
protected javax.ws.rs.core.Response toWebModuleResponse(WebContext ctx)
public int getStatus()
public void setStatus(int status)
public String getRequestId()
public String getHelpUrl()
Copyright © 2018 Nuxeo. All rights reserved.