Package org.codehaus.jackson.jaxrs
Class JsonMappingExceptionMapper
java.lang.Object
org.codehaus.jackson.jaxrs.JsonMappingExceptionMapper
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<JsonMappingException>
@Provider
public class JsonMappingExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<JsonMappingException>
Implementation if
ExceptionMapper
to send down a "400 Bad Request"
response in the event that unmappable JSON is received.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
toResponse
(JsonMappingException exception)
-
Constructor Details
-
JsonMappingExceptionMapper
public JsonMappingExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<JsonMappingException>
-