code: static void logConnectionException(URI uri, DiscoveryOption discoveryOption, boolean moreOptions, Exception e) {
          if (uri == null) {
              HostControllerLogger.ROOT_LOGGER.failedDiscoveringMaster(discoveryOption, e);
          } else {
              HostControllerLogger.ROOT_LOGGER.cannotConnect(uri, e);
          }
          if (!moreOptions) {
              // All discovery options have been exhausted
              HostControllerLogger.ROOT_LOGGER.noDiscoveryOptionsLeft();
          }
      }
docs: Handles logging tasks related to a failure to connect to a remote HC.
  @param uri the URI at which the connection attempt was made. Can be {@code null} indicating a failure to discover the HC
  @param discoveryOption the {@code DiscoveryOption} used to determine {@code uri}
  @param moreOptions {@code true} if there are more untried discovery options
  @param e the exception