org.nuxeo.ecm.automation.server.jaxrs
Class ExceptionHandler
java.lang.Object
org.nuxeo.ecm.automation.server.jaxrs.ExceptionHandler
public class ExceptionHandler
- extends Object
- Author:
- Bogdan Stefanescu
ExceptionHandler
public ExceptionHandler(String message,
Throwable cause)
newException
public static WebApplicationException newException(Throwable cause)
newException
public static WebApplicationException newException(String message,
Throwable cause)
abort
public static void abort(String message,
Throwable cause)
throws WebApplicationException
- Throws:
WebApplicationException
abort
public static void abort(Throwable cause)
throws WebApplicationException
- Throws:
WebApplicationException
getStatus
public static int getStatus(Throwable cause)
- Tries to find the best matching HTTP status for the given exception.
getStatus
public static int getStatus(Throwable cause,
int depth)
getStatus
public int getStatus()
getType
public String getType()
setStatus
public void setStatus(int status)
getMessage
public String getMessage()
getSerializedStackTrace
public String getSerializedStackTrace()
Copyright © 2011 Nuxeo SAS. All Rights Reserved.