@Provider public final class JacksonJsonMappingExceptionMapper extends Object implements ExceptionMapper<com.fasterxml.jackson.databind.JsonMappingException>
JsonParseException instances to a REST response representing an ErrorReport.
This is mapper ensures that parse error of a JSON request result in a proper ErrorReport response.| Constructor and Description |
|---|
JacksonJsonMappingExceptionMapper() |
| Modifier and Type | Method and Description |
|---|---|
Response |
toResponse(com.fasterxml.jackson.databind.JsonMappingException exception) |
public Response toResponse(com.fasterxml.jackson.databind.JsonMappingException exception)
toResponse in interface ExceptionMapper<com.fasterxml.jackson.databind.JsonMappingException>