code: protected void error(E error) {
      this.error = checkNotNull(error);
      this.completed = true;
      for (Callback<T, E> callback : toBeNotified) {
        callback.error(error);
      }
    }
docs: Sets an error and status as completed. Notifies all callbacks.