docs: public ExecutionChain setErrorCallback(ErrorCallback callback) {
          if (state.get() == State.RUNNING) {
              throw new IllegalStateException(
                      "Invalid while ExecutionChain is running");
          }
          errorCallback = callback;
          return this;
      }