code: protected ErrorInfo getErrorInfo(IOException e) {
      GoogleJsonError gjre = getDetails(e);
      if (gjre != null) {
        return getErrorInfo(gjre);
      }
      return null;
    }
docs: Get the first ErrorInfo from an IOException if it is an instance of
  GoogleJsonResponseException, otherwise return null.