@Provider public class JsonParseExceptionMapper extends Object implements ExceptionMapper<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 |
|---|---|
Response |
toResponse(JsonParseException exception) |
public Response toResponse(JsonParseException exception)
toResponse in interface ExceptionMapper<JsonParseException>