The following piece of code is throwing a error after i updated to the latest google client apis
catch (IOException e) {
if (e instanceof HttpResponseException) {
HttpResponse response = ((HttpResponseException) e)
.getResponse();//The error is here
int statusCode = response.getStatusCode();
At getResponse it throws an error The method getResponse() is undefined for the type HttpResponseException
I have tried rolling back to the previous versions of the api but in vain.
This method was removed in version 1.10 of the Google HTTP Client Library.
The exception now has its own
getStatusCode()method.