code: @Override
      public final void onFailure(Throwable t) {
  
          if (!reconnecting.get()) {
              logger.trace("onFailure {}", t);
  
              connectFutureException(t);
              errorHandled.set(TransportsUtil.invokeFunction(ERROR, decoders, functions, t.getClass(), t, ERROR.name(), resolver));
          }
      }
docs: {@inheritDoc}