Class JsonParseExceptionMapper
- java.lang.Object
-
- org.glassfish.jersey.jackson.internal.jackson.jaxrs.base.JsonParseExceptionMapper
-
- All Implemented Interfaces:
ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>
public class JsonParseExceptionMapper extends Object implements ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>
Implementation ofExceptionMapperto send down a "400 Bad Request" in the event unparsable JSON is received.Note that
Providerannotation was include up to Jackson 2.7, but removed from 2.8 (as per [jaxrs-providers#22]- Since:
- 2.2
-
-
Constructor Summary
Constructors Constructor Description JsonParseExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponsetoResponse(com.fasterxml.jackson.core.JsonParseException exception)
-
-
-
Method Detail
-
toResponse
public Response toResponse(com.fasterxml.jackson.core.JsonParseException exception)
- Specified by:
toResponsein interfaceExceptionMapper<com.fasterxml.jackson.core.JsonParseException>
-
-