@Provider public final class JacksonJsonParseExceptionMapper extends Object implements ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>
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 |
---|
JacksonJsonParseExceptionMapper() |
Modifier and Type | Method and Description |
---|---|
Response |
toResponse(com.fasterxml.jackson.core.JsonParseException exception) |
public Response toResponse(com.fasterxml.jackson.core.JsonParseException exception)
toResponse
in interface ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>