AggregateVersionConflictExceptionType

PackageFCQRS
The aggregate rejected a conditional command before running its handler because its persisted version differed from the caller's expected version.

Specification

Kind
Type
Members
4
Examples
0
``.ctor``Signature
AggregateVersionConflictException(aggregateId, expectedVersion, actualVersion)
ExpectedVersionSignature
this.ExpectedVersion
AggregateIdSignature
this.AggregateId
ActualVersionSignature
this.ActualVersion

Summary

NameSignatureSynopsis
``.ctor``AggregateVersionConflictException(aggregateId, expectedVersion, actualVersion)No description available.
ExpectedVersionthis.ExpectedVersionThe persisted version required by the caller.
AggregateIdthis.AggregateIdThe target aggregate's entity ID.
ActualVersionthis.ActualVersionThe persisted version observed when the aggregate checked the command.

``.ctor``

AggregateVersionConflictException(aggregateId, expectedVersion, actualVersion)
Member

Parameters

NameTypeDescription
aggregateIdstring
expectedVersionint64
actualVersionint64

Returns

AggregateVersionConflictException

ExpectedVersion

this.ExpectedVersion
Member
The persisted version required by the caller.

Returns

int64

AggregateId

this.AggregateId
Member
The target aggregate's entity ID.

Returns

string

ActualVersion

this.ActualVersion
Member
The persisted version observed when the aggregate checked the command.

Returns

int64