public class WebException extends WebApplicationException
Constructor and Description |
---|
WebException() |
WebException(int status) |
WebException(Response.Status status) |
WebException(Response response) |
WebException(String message) |
WebException(String message,
int code) |
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
Response |
getResponse() |
int |
getReturnCode()
Deprecated.
|
String |
getStackTraceString() |
int |
getStatusCode() |
static Object |
handleError(WebApplicationException e) |
static Response |
toResponse(Throwable t) |
static String |
toString(Throwable t) |
static WebException |
wrap(String message,
Throwable e) |
static WebException |
wrap(Throwable e) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public WebException()
public WebException(Response response)
public WebException(int status)
public WebException(Response.Status status)
public WebException(String message)
public WebException(String message, int code)
public String getMessage()
getMessage
in class Throwable
public int getStatusCode()
@Deprecated public int getReturnCode()
public Response getResponse()
getResponse
in class WebApplicationException
public String getStackTraceString()
public static WebException wrap(Throwable e)
public static WebException wrap(String message, Throwable e)
public static Object handleError(WebApplicationException e)
Copyright © 2013 Nuxeo SA. All Rights Reserved.