Class JsonMappingExceptionMapper
java.lang.Object
org.glassfish.jersey.jackson.internal.jackson.jaxrs.base.JsonMappingExceptionMapper
- All Implemented Interfaces:
ExceptionMapper<com.fasterxml.jackson.databind.JsonMappingException>
public class JsonMappingExceptionMapper
extends Object
implements ExceptionMapper<com.fasterxml.jackson.databind.JsonMappingException>
Implementation if
ExceptionMapper
to send down a "400 Bad Request"
response in the event that unmappable JSON is received.
Note that Provider
annotation was include up to
Jackson 2.7, but removed from 2.8 (as per [jaxrs-providers#22]
- Since:
- 2.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoResponse
(com.fasterxml.jackson.databind.JsonMappingException exception)
-
Constructor Details
-
JsonMappingExceptionMapper
public JsonMappingExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponse
in interfaceExceptionMapper<com.fasterxml.jackson.databind.JsonMappingException>
-