@Provider public class JsonParseExceptionMapper extends Object implements ExceptionMapper<JsonParseException>
ExceptionMapper
to send down a "400 Bad Request"
in the event unparsable JSON is received.public Response toResponse(JsonParseException exception)
toResponse
在接口中 ExceptionMapper<JsonParseException>