CapabilityFailure class

A typed failure a ProcessCapability's result / probeCompletionArtifact body may THROW to name its own failure kind.

Carries ONLY the kind and a bounded reason — never a retry policy, never a state transition. Retry policy is declared separately (Capability.supervisionPolicy) so no payload an agent produced can steer supervision.

Implemented types

Constructors

CapabilityFailure(CapabilityFailureKind kind, String reason)
Creates a failure of kind; reason is bounded AT CONSTRUCTION through the engine's one bound (truncateReason), never widened downstream.
CapabilityFailure.invalidResult(String reason)
A result exists but violates the declared contract.
CapabilityFailure.noResult(String reason)
No usable result/artifact was produced.

Properties

hashCode int
The hash code for this object.
no setterinherited
kind CapabilityFailureKind
Why the turn failed.
final
reason String
The bounded diagnostic (capture-only telemetry).
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.
override

Operators

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