MinVersionNotReachedException

class MinVersionNotReachedException(val ref: AggregateRef, val minVersion: Int, val version: Int) : RuntimeException

A state read that asked for at least minVersion of ref (read your writes) while the aggregate stayed at version, a state the reader may see, through the read's wait: the command whose version was asked for has not committed yet. An aggregate with no commit, or one the reader may not see, is not found instead. The HTTP state route answers it 409 me.ahoo.wow.api.result.FrameworkCodes.QUERY_MIN_VERSION_NOT_REACHED with the version, and Retry-After, and the HTTP client reads that problem back as this exception. It is not a me.ahoo.wow.api.problem.WowProblemException: it carries the ref and both versions, which a reader acts on, and each boundary maps it to the problem once.

Constructors

Link copied to clipboard
constructor(ref: AggregateRef, minVersion: Int, version: Int)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard