Exception: Sequent::Core::AggregateRepository::NonUniqueAggregateId
- Inherits:
-
StandardError
- Object
- StandardError
- Sequent::Core::AggregateRepository::NonUniqueAggregateId
- Defined in:
- lib/sequent/core/aggregate_repository.rb
Instance Method Summary collapse
-
#initialize(existing, new) ⇒ NonUniqueAggregateId
constructor
A new instance of NonUniqueAggregateId.
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 |