Exception: Sequent::Core::AggregateRepository::NonUniqueAggregateId

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sequent/core/aggregate_repository.rb

Instance Method Summary collapse

Constructor Details

#initialize(existing, new) ⇒ NonUniqueAggregateId

Returns a new instance of NonUniqueAggregateId.



20
21
22
# File 'lib/sequent/core/aggregate_repository.rb', line 20

def initialize(existing, new)
  super "Duplicate aggregate #{new} with same key as existing #{existing}"
end