code: @Override
      public void     setErrorMode(ErrorMode newErrorMode)
      {
          Preconditions.checkNotNull(lockPath, "lockPath cannot be null");
  
          if ( newErrorMode == ErrorMode.REQUEUE )
          {
              log.warn("ErrorMode.REQUEUE requires ZooKeeper version 3.4.x+ - make sure you are not using a prior version");
          }
  
          errorMode.set(newErrorMode);
      }
docs: Used when the queue is created with a {@link QueueBuilder#lockPath(String)}. Determines
  the behavior when the queue consumer throws an exception
  
  @param newErrorMode the new error mode (the default is {@link ErrorMode#REQUEUE}