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.



22
23
24
# File 'lib/sequent/core/aggregate_repository.rb', line 22

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