Failure class

Carries a message plus an optional captured stack.

Runners wrap a caught error and its StackTrace in this so formatFailureText can render message + frames without the language's toString() dropping one of them.

Implemented types

Constructors

Failure(String message, [String? stack])
Builds a failure from a readable message and optional stack frames.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
message → String
Readable failure message.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stack → String?
Captured stack frames, when the runner had them.
final

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