ScenarioFailure class

A failure raised inside a split branch, wrapping the real error with the path that reached it — 'a cappuccino › large cup'. Without it a failing branch reports only the scenario's name, and which of the paths broke is nowhere in the output.

Implemented types

Constructors

ScenarioFailure(List<String> branch, Object error)

Properties

branch → List<String>
The split choices taken to reach the failure, outermost first.
final
error → Object
final
hashCode → int
The hash code for this object.
no setterinherited
path → String
no setter
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