FirstEventDecision

sealed interface FirstEventDecision<out EVENT>(source)

Inheritors

Types

Link copied to clipboard
data class Accepted<EVENT>(val event: EVENT, val additional: List<EVENT> = emptyList()) : FirstEventDecision<EVENT>
Link copied to clipboard
data class Rejected(val reason: String, val cause: Throwable? = null) : FirstEventDecision<Nothing>

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