AttemptExecutionOutcome<T> class
final
Captured outcome for adapters that project an attempt into a test report.
Constructors
-
AttemptExecutionOutcome({required T? value, required bool completed, required Object? bodyError, required StackTrace? bodyStackTrace, required Object? closeError, required StackTrace? closeStackTrace, required List<
({Object error, StackTrace stackTrace})> closeFailures}) -
const
Properties
- bodyError → Object?
-
final
- bodyStackTrace → StackTrace?
-
final
- closeError → Object?
-
final
-
closeFailures
→ List<
({Object error, StackTrace stackTrace})> -
All adapter, registered-resource, and scope restoration failures.
closeError remains the first such failure for existing projections.
final
- closeStackTrace → StackTrace?
-
final
- completed → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- primaryFailure → ({Object error, StackTrace stackTrace})?
-
Body failures take precedence over cleanup and scope-restoration
failures. Both application adapters use this same attempt-level rule.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requireValue(
) → T - Returns the body value or throws the selected attempt failure.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited