}
}
if (response == null) {
// This is from that bug, and retrying hasn't fixed it.
throw new DropboxIOException("Apache HTTPClient encountered an error. No response, try again.");
} else if (response.getStatusLine().getStatusCode() != DropboxServerException._200_OK) {
// This will throw the right thing: either a DropboxServerException or a DropboxProxyException
parseAsJSON(response);
}
return response;
} catch (SSLException e) {
throw new DropboxSSLException(e);
} catch (IOException e) {
// Quite common for network going up & down or the request being
// cancelled, so don't worry about logging this
throw new DropboxIOException(e);
} catch (OutOfMemoryError e) {
throw new DropboxException(e);
}
}