void addError()

in lib/src/disconnector.dart [100:108]


  void addError(error, [StackTrace? stackTrace]) {
    if (_closed) throw StateError('Cannot add event after closing.');
    if (_inAddStream) {
      throw StateError('Cannot add event while adding stream.');
    }
    if (_isDisconnected) return;

    _inner.addError(error, stackTrace);
  }