FailureReasons

The reason a parked aggregate records for a failure (ParkedAggregate.reason), which an operator reads and which leaves the service through the ops routes, the park webhook and the ops context: what failed, never a value it failed on (#6588). The full failure, its message and its stack trace, is in the node's log, which names the aggregate, the subscription and the version it parked at.

A reason is the failure's class name, then, after : , what is known of it, then each of at most MAX_CAUSES of its causes, caused by its class name and what is known of it, separated by ; :

me.ahoo.wow.kernel.UnreadableEventException: event 'shop.order.Placed' revision 1 not readable;
caused by tools.jackson.databind.exc.MismatchedInputException: cannot read 'quantity' as int

What is known of a failure is:

The class name comes first, so the type an operator groups the entries by is the text before the first : , as the ops context's errorType and the console read it. A reason is at most MAX_LENGTH characters.

Constructors

Link copied to clipboard
constructor(describers: List<FailureDescriber>)

Types

Link copied to clipboard

Functions

Link copied to clipboard
fun reasonOf(failure: Throwable): String

The reason failure parks an aggregate with.