@Provider public class JsonMappingExceptionMapper extends Object implements javax.ws.rs.ext.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 |
---|---|
javax.ws.rs.core.Response |
toResponse(JsonMappingException exception) |
public javax.ws.rs.core.Response toResponse(JsonMappingException exception)
toResponse
in interface javax.ws.rs.ext.ExceptionMapper<JsonMappingException>