@Provider
public class JsonParseExceptionMapper
extends java.lang.Object
implements javax.ws.rs.ext.ExceptionMapper<com.fasterxml.jackson.core.JsonParseException>
ExceptionMapper to send down a "400 Bad Request"
in the event unparsable JSON is received.| Constructor and Description |
|---|
JsonParseExceptionMapper() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
toResponse(com.fasterxml.jackson.core.JsonParseException exception) |