code: public HostAvailabilityListener withHostUnavailableExceptions(Class<Throwable>... exceptionTypes) {
      hostUnavailableExceptions = new ArrayList<>();
      for ( Class<Throwable> exception : exceptionTypes ) {
        hostUnavailableExceptions.add(exception);
      }
      return this;
    }
docs: Overwrites the list of exceptions for which a request can be retried and
  a MarkLogic host can be blacklisted
  
  @param exceptionTypes the list of types of Throwable, any of which constitute a host that's unavailable
  
  @return this instance (for method chaining)