public class ExceptionHandler extends Object
Constructor and Description |
---|
ExceptionHandler(String message,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static void |
abort(String message,
Throwable cause) |
static void |
abort(Throwable cause) |
Throwable |
getCause() |
String |
getMessage() |
String |
getSerializedStackTrace() |
int |
getStatus() |
static int |
getStatus(Throwable cause)
Tries to find the best matching HTTP status for the given exception.
|
static int |
getStatus(Throwable cause,
int depth) |
String |
getType() |
static WebApplicationException |
newException(String message,
Throwable cause) |
static WebApplicationException |
newException(Throwable cause) |
void |
setStatus(int status) |
public static WebApplicationException newException(Throwable cause)
public static WebApplicationException newException(String message, Throwable cause)
public static void abort(String message, Throwable cause) throws WebApplicationException
WebApplicationException
public static void abort(Throwable cause) throws WebApplicationException
WebApplicationException
public static int getStatus(Throwable cause)
public static int getStatus(Throwable cause, int depth)
public int getStatus()
public String getType()
public void setStatus(int status)
public String getMessage()
public String getSerializedStackTrace()
public Throwable getCause()
Copyright © 2011 Nuxeo SA. All Rights Reserved.