Exception: Synapse::Repository::ConflictingAggregateVersionError
- Inherits:
-
ConflictingModificationError
- Object
- RuntimeError
- SynapseError
- NonTransientError
- ConflictingModificationError
- Synapse::Repository::ConflictingAggregateVersionError
- Defined in:
- lib/synapse/repository/errors.rb
Overview
Raised when the version number of the aggregate being loaded didn’t match the expected version number given. This typically means that the aggregate has been modified by another thread between the moment the data was queried and the command modifying the aggregate was handled.
Instance Method Summary collapse
Constructor Details
#initialize(aggregate, expected_version) ⇒ undefined
21 22 23 |
# File 'lib/synapse/repository/errors.rb', line 21 def initialize(aggregate, expected_version) super 'Aggregate [%s] has version %s, expected %s' % [aggregate.id, aggregate.version, expected_version] end |