RecordingEscalationHandler class

A recording EscalationHandler: records every escalation and returns a settable EscalationDecision (default: park, like HumanGate).

Implemented types

Constructors

RecordingEscalationHandler({String id = 'fake-handler', EscalationDecision decision = const ParkAtGate('parked by the fake handler'), bool throwNext = false})
Creates the recorder; an escalation returns decision unless throwNext.

Properties

decision ↔ EscalationDecision
What an escalation resolves to.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id → String
This handler's id — recorded on the step.escalated flare (the audit record of WHO the work was raised to).
final
requests → List<EscalationRequest>
Every escalation, in call order.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
throwNext ↔ bool
When true, an escalation THROWS instead of resolving.
getter/setter pair

Methods

escalate(EscalationRequest request) → Future<EscalationDecision>
Decides how request is absorbed. A THROWING handler routes the node to SUPERVISION (the per-work fail-closed posture, ADR-0008 Decision 10).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited