Enum CompleteStreamError
- Namespace
- Cratis.Chronicle.EventSequences
- Assembly
- Cratis.Chronicle.dll
The errors that can occur when completing a stream on an IEventSequence.
public enum CompleteStreamError
- Extension Methods
Fields
AlreadyCompleted = 0The stream was already completed previously.
Completing a stream is idempotent at the storage level — the stream remains completed regardless of how many times completion is requested — but the caller is informed via this error so it can distinguish a freshly completed stream from one that was already in the completed state.
DefaultStreamCannotBeCompleted = 1The default stream (All paired with the default EventStreamId) cannot be completed.
The default stream is the catch-all stream events fall into when no specific stream type or identifier is supplied. Completing it would block all future appends to the event sequence and is therefore not permitted.
EmptyScope = 2The scope has no participating dimensions.
ExpectedTailMismatch = 3The scope tail differs from the expected sequence number.