docs: static void rethrowIrrecoverableConnectionFailures(IOException e) throws SlaveRegistrationException {
          Throwable cause = e;
          while ((cause = cause.getCause()) != null) {
              if (cause instanceof SaslException) {
                  throw HostControllerLogger.ROOT_LOGGER.authenticationFailureUnableToConnect(cause);
              } else if (cause instanceof SSLHandshakeException) {
                  throw HostControllerLogger.ROOT_LOGGER.sslFailureUnableToConnect(cause);
              } else if (cause instanceof SlaveRegistrationException) {
                  throw (SlaveRegistrationException) cause;
              }
          }
      }