org.nuxeo.ecm.automation.server.jaxrs
Class ExceptionHandler
java.lang.Object
org.nuxeo.ecm.automation.server.jaxrs.ExceptionHandler
public class ExceptionHandler
- extends java.lang.Object
- Author:
- Bogdan Stefanescu
Constructor Summary |
ExceptionHandler(java.lang.String message,
java.lang.Throwable cause)
|
Method Summary |
static void |
abort(java.lang.String message,
java.lang.Throwable cause)
|
static void |
abort(java.lang.Throwable cause)
|
java.lang.String |
getMessage()
|
java.lang.String |
getSerializedStackTrace()
|
int |
getStatus()
|
static int |
getStatus(java.lang.Throwable cause)
Tries to find the best matching HTTP status for the given exception. |
static int |
getStatus(java.lang.Throwable cause,
int depth)
|
java.lang.String |
getType()
|
static javax.ws.rs.WebApplicationException |
newException(java.lang.String message,
java.lang.Throwable cause)
|
static javax.ws.rs.WebApplicationException |
newException(java.lang.Throwable cause)
|
void |
setStatus(int status)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionHandler
public ExceptionHandler(java.lang.String message,
java.lang.Throwable cause)
newException
public static javax.ws.rs.WebApplicationException newException(java.lang.Throwable cause)
newException
public static javax.ws.rs.WebApplicationException newException(java.lang.String message,
java.lang.Throwable cause)
abort
public static void abort(java.lang.String message,
java.lang.Throwable cause)
throws javax.ws.rs.WebApplicationException
- Throws:
javax.ws.rs.WebApplicationException
abort
public static void abort(java.lang.Throwable cause)
throws javax.ws.rs.WebApplicationException
- Throws:
javax.ws.rs.WebApplicationException
getStatus
public static int getStatus(java.lang.Throwable cause)
- Tries to find the best matching HTTP status for the given exception.
getStatus
public static int getStatus(java.lang.Throwable cause,
int depth)
getStatus
public int getStatus()
getType
public java.lang.String getType()
setStatus
public void setStatus(int status)
getMessage
public java.lang.String getMessage()
getSerializedStackTrace
public java.lang.String getSerializedStackTrace()
Copyright © 2010 Nuxeo SAS. All Rights Reserved.