Failed class
The capability failed (routes to supervision). Maps to StepState.failed.
- Inheritance
-
- Object
- StepOutcome
- Failed
Constructors
- Failed([String reason = ''])
-
Creates a substantive WORK failure — the capability ran and produced a
valid negative result. The default, so every existing call site is
unchanged.
const
- Failed.from(CapabilityFailure failure)
-
Preserves a thrown
failure's kind + already-bounded reason. - Failed.invalidResult([String reason = ''])
-
Creates a failure for a result that violates its declared contract.
const
- Failed.noResult([String reason = ''])
-
Creates a failure for a turn that produced NO usable result.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → CapabilityFailureKind
-
WHY the turn failed — the discriminant the host maps to a durable
StepFailureClassand to this kind's retry policy.final - reason → String
-
A human-readable failure reason.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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