class Synapse::Repository::ConflictingAggregateVersionError
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.
Public Class Methods
new(aggregate, expected_version)
click to toggle source
@param [AggregateRoot] aggregate @param [Integer] expected_version @return [undefined]
Calls superclass method
# 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