isInfrastructureFailure method
Whether error, raised while processing the current command, is an
infrastructure failure (see the mixin documentation) rather than a
rejection of the command.
Implementation
@protected
bool isInfrastructureFailure(Object? error) =>
_journalWriteStarted || error is OptimisticConcurrencyException;