Setting the event data is error
@override Future<void> error([Exception? exception, T? data]) => super.accept(EntityState<T>.error(exception, data));