docs: private static boolean isNetworkConnectException(Throwable e) {
          do {
              if (IOException.class.isInstance(e)) {
                  return true;
              }
              e = e.getCause();
          } while (e != null);
          return false;
      }