DuplicateRequestIdException

class DuplicateRequestIdException(val aggregateId: AggregateId, val requestId: String, errorMsg: String = "Duplicate request ID[", cause: Throwable? = null) : WowException, NamedAggregate

Exception thrown when a duplicate request ID is detected.

This exception occurs when attempting to process a command with a request ID that has already been processed for the same aggregate, preventing duplicate command execution.

Parameters

aggregateId

the aggregate for which the duplicate was detected

requestId

the duplicate request identifier

errorMsg

custom error message (default provided)

cause

the underlying cause (optional)

See also

Constructors

Link copied to clipboard
constructor(aggregateId: AggregateId, requestId: String, errorMsg: String = "Duplicate request ID[", cause: Throwable? = null)

Properties

Link copied to clipboard
Link copied to clipboard