public class JsonParseExceptionMapper extends Object implements ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>
ExceptionMapper
to send down a "400 Bad Request"
in the event unparsable JSON is received.
Note that Provider
annotation was include up to
Jackson 2.7, but removed from 2.8 (as per [jaxrs-providers#22]
Constructor and Description |
---|
JsonParseExceptionMapper() |
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>
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.