@Provider public class JsonMappingExceptionMapper extends Object implements ExceptionMapper<JsonMappingException>
ExceptionMapper to send down a "400 Bad Request"
response in the event that unmappable JSON is received.| Constructor and Description |
|---|
JsonMappingExceptionMapper() |
| Modifier and Type | Method and Description |
|---|---|
Response |
toResponse(JsonMappingException exception) |
public Response toResponse(JsonMappingException exception)
toResponse in interface ExceptionMapper<JsonMappingException>