EventDecision

sealed interface EventDecision<out EVENT>(source)

Inheritors

Types

Link copied to clipboard
data class Accepted<EVENT>(val events: List<EVENT>) : EventDecision<EVENT>
Link copied to clipboard

The command is accepted without producing events.

Link copied to clipboard
data class Rejected(val reason: String, val cause: Throwable? = null) : EventDecision<Nothing>

A well-defined domain rejection. cause can retain useful lower-level context.