Failure class

A class that represents a failure.

Constructors

Failure.new(String message, [Exception? cause])
Creates a new instance of Failure.
const

Properties

cause Exception?
cause is the cause of the failure.
final
hashCode int
The hash code for this object.
no setterinherited
message String
message is the message of the failure.
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