Failure
Inheritors
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class OutcomeUnknown<EVENT>(val preparedAppend: PreparedAppend<EVENT>, val cause: Throwable) : AggregateChangeResult.Failure<EVENT>
The store may have committed the events but could not return a definitive acknowledgement. Retain preparedAppend and submit it through aggregate recovery, which retries the exact append and reloads committed state. Do not handle the command again: that would decide and prepare a new append against state that may already include the first attempt.
Functions
Link copied to clipboard
fun <STATE : AggregateState> AggregateChangeResult<STATE, *>.committedStateOrNull(): CommittedState<STATE>?
Returns committed state for either success branch, or null for every failure branch.