org.apache.hcatalog.templeton
Class CatchallExceptionMapper

Object
  extended by CatchallExceptionMapper
All Implemented Interfaces:
ExceptionMapper<Exception>

@Provider
public class CatchallExceptionMapper
extends Object
implements ExceptionMapper<Exception>

Map all exceptions to the Jersey response. This lets us have nice results in the error body.


Constructor Summary
CatchallExceptionMapper()
           
 
Method Summary
 Response toResponse(Exception e)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatchallExceptionMapper

public CatchallExceptionMapper()
Method Detail

toResponse

public Response toResponse(Exception e)
Specified by:
toResponse in interface ExceptionMapper<Exception>