com.parthparekh.service.exception
Class RuntimeExceptionMapper

java.lang.Object
  extended by com.parthparekh.service.exception.RuntimeExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<java.lang.RuntimeException>

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

Runtime mapper class


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

Constructor Detail

RuntimeExceptionMapper

public RuntimeExceptionMapper()
Method Detail

toResponse

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