org.codehaus.jackson.jaxrs
Class JsonMappingExceptionMapper

java.lang.Object
  extended by org.codehaus.jackson.jaxrs.JsonMappingExceptionMapper
All Implemented Interfaces:
ExceptionMapper<JsonMappingException>

@Provider
public class JsonMappingExceptionMapper
extends Object
implements ExceptionMapper<JsonMappingException>

Implementation if ExceptionMapper to send down a "400 Bad Request" response in the event that unmappable JSON is received.


Constructor Summary
JsonMappingExceptionMapper()
           
 
Method Summary
 Response toResponse(JsonMappingException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonMappingExceptionMapper

public JsonMappingExceptionMapper()
Method Detail

toResponse

public Response toResponse(JsonMappingException exception)
Specified by:
toResponse in interface ExceptionMapper<JsonMappingException>