DuplicateAggregateIdException

class DuplicateAggregateIdException(val eventStream: DomainEventStream, errorMsg: String = "Duplicate ", cause: Throwable? = null) : WowException

Exception thrown when attempting to create an aggregate with an ID that already exists. This typically occurs when trying to append events for an aggregate that has already been initialized.

Parameters

eventStream

the domain event stream that caused the duplicate

errorMsg

the error message (default: duplicate aggregate ID message)

cause

the underlying cause of the exception

Constructors

Link copied to clipboard
constructor(eventStream: DomainEventStream, errorMsg: String = "Duplicate ", cause: Throwable? = null)

Properties

Link copied to clipboard