Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webengine.jaxrs.session
Class CoreExceptionMapper

java.lang.Object
  extended by org.nuxeo.ecm.webengine.jaxrs.session.CoreExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<Throwable>

public class CoreExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<Throwable>

Author:
Bogdan Stefanescu

Constructor Summary
CoreExceptionMapper()
           
 
Method Summary
static javax.ws.rs.core.Response getResponse(Throwable t, int status)
           
static String getStackTrace(Throwable t)
           
 javax.ws.rs.core.Response toResponse(Throwable t)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoreExceptionMapper

public CoreExceptionMapper()
Method Detail

toResponse

public javax.ws.rs.core.Response toResponse(Throwable t)
Specified by:
toResponse in interface javax.ws.rs.ext.ExceptionMapper<Throwable>

getResponse

public static javax.ws.rs.core.Response getResponse(Throwable t,
                                                    int status)

getStackTrace

public static String getStackTrace(Throwable t)

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.