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