it.eng.spagobi.rest.interceptors
Class RestExceptionMapper

java.lang.Object
  extended by it.eng.spagobi.rest.interceptors.RestExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>

@Provider
public class RestExceptionMapper
extends java.lang.Object
implements javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>

Author:
Alberto Ghedin (alberto.ghedin@eng.it) Updates the audit log for the services that throw exceptions

Constructor Summary
RestExceptionMapper()
           
 
Method Summary
 javax.ws.rs.core.Response toResponse(java.lang.Throwable e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestExceptionMapper

public RestExceptionMapper()
Method Detail

toResponse

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