StateNotFoundException
class StateNotFoundException(val ref: AggregateRef, val reason: StateNotFoundException.Reason, detail: String = "No state of ") : RuntimeException
A state read that finds nothing the caller may see: no such state, or one the caller may not see. Every case is answered alike, as wow.aggregate.not-found, so a caller cannot tell a state it may not see from one that does not exist; only the audit of the read learns the reason (its error code reads wow.aggregate.not-found:<reason>).
Constructors
Link copied to clipboard
constructor(ref: AggregateRef, reason: StateNotFoundException.Reason, detail: String = "No state of ")