Failure<E> class

Represents a failure with an error of type E.

Inheritance

Constructors

Failure(E error, [StackTrace? stackTrace])
const

Properties

error → E
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
final
stackTraceSkipFrames int
finalinherited

Methods

lift<E2>() Cause<E2>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prettyStackTrace([String prefix = ""]) String
inherited
toString() String
A string representation of this object.
override
when<B>({required B failure(Failure<E> _), required B defect(Defect<E> _), required B interrupted(Interrupted<E> _)}) → B
override
withTrace(StackTrace stack) Failure<E>
override

Operators

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