org.apache.hcatalog.templeton
Class SimpleExceptionMapper

Object
  extended by SimpleExceptionMapper
All Implemented Interfaces:
ExceptionMapper<SimpleWebException>

@Provider
public class SimpleExceptionMapper
extends Object
implements ExceptionMapper<SimpleWebException>

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


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

Constructor Detail

SimpleExceptionMapper

public SimpleExceptionMapper()
Method Detail

toResponse

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