Class EventsOutOfOrderException
The IEventStore<TAuthenticationToken> gave IEvent<TAuthenticationToken> out of order or an expected IEvent<TAuthenticationToken> with a specific version number wasn't provided.
Inheritance
Inherited Members
Namespace: Cqrs.Domain.Exceptions
Assembly: Cqrs.dll
Syntax
[Serializable]
public class EventsOutOfOrderException : Exception, ISerializable, _Exception
Constructors
EventsOutOfOrderException(Guid, Type, Int32, Int32)
Instantiate a new instance of EventsOutOfOrderException with the provided identifier of the IAggregateRoot<TAuthenticationToken> that had out of order IEvent<TAuthenticationToken>.
and the currentVersion
the IAggregateRoot<TAuthenticationToken> was at and the providedEventVersion
.
Declaration
public EventsOutOfOrderException(Guid id, Type aggregateType, int currentVersion, int providedEventVersion)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | The identifier of the IAggregateRoot<TAuthenticationToken> that had IEvent<TAuthenticationToken>. |
System.Type | aggregateType | The System.Type of the IAggregateRoot<TAuthenticationToken> that the IEvent<TAuthenticationToken> was trying to be saved on. |
System.Int32 | currentVersion | The version number the IAggregateRoot<TAuthenticationToken> was at when it received an out of order IEvent<TAuthenticationToken>. |
System.Int32 | providedEventVersion | The version number the IEvent<TAuthenticationToken> that was provided, that was out of order. |
Properties
AggregateType
The System.Type of the IAggregateRoot<TAuthenticationToken> that had out of order IEvent<TAuthenticationToken>.
Declaration
[DataMember]
public Type AggregateType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |
CurrentVersion
The version number the IAggregateRoot<TAuthenticationToken> was at when it received an out of order IEvent<TAuthenticationToken>.
Declaration
[DataMember]
public int CurrentVersion { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Id
The identifier of the IAggregateRoot<TAuthenticationToken> that had out of order IEvent<TAuthenticationToken>.
Declaration
[DataMember]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
ProvidedEventVersion
The version number the IEvent<TAuthenticationToken> that was provided, that was out of order.
Declaration
[DataMember]
public int ProvidedEventVersion { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |