/** * Parses the given error HTTP response using the given JSON factory. * * @param jsonFactory JSON factory * @param response HTTP response * @return new instance of the Google JSON error information */ public static GoogleJsonError parse(JsonFactory jsonFactory, HttpResponse response) throws IOException { JsonCParser parser = new JsonCParser(); parser.jsonFactory = jsonFactory; return parser.parse(response, GoogleJsonError.class); }