public class JsonMappingExceptionMapper extends Object implements ExceptionMapper<JsonMappingException>
ExceptionMapperto send down a "400 Bad Request" response in the event that unmappable JSON is received.
Provider annotation was include up to
Jackson 2.7, but removed from 2.8 (as per [jaxrs-providers#22]
|Constructor and Description|
|Modifier and Type||Method and Description|
Map an exception to a
public Response toResponse(JsonMappingException exception)
nullresults in a
Response.Status.NO_CONTENTresponse. Throwing a runtime exception results in a
exception- the exception to map to a response.
Copyright © 2019 JBoss by Red Hat. All rights reserved.