public class JsonMappingExceptionMapper extends Object implements ExceptionMapper<com.fasterxml.jackson.databind.JsonMappingException>
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]
| Constructor and Description |
|---|
JsonMappingExceptionMapper() |
| 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>Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.