Failure<A, E> class final

Represents a failed exit with a cause

Inheritance

Constructors

Failure.new(Cause<E> cause)
const

Properties

cause Cause<E>
final
hashCode int
The hash code for this object.
no setteroverride
isFailure bool
Returns true if this is a Failure
no setterinherited
isSuccess bool
Returns true if this is a Success
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

flatMap<B, E2>(Exit<B, E2> f(A)) Exit<B, E2>
Flat maps this exit with a function that returns another exit
inherited
fold<C>(C onFailure(Cause<E>), C onSuccess(A)) → C
Folds this exit into a single value
inherited
map<B>(B f(A)) Exit<B, E>
Maps the success value of this exit
inherited
mapError<E2>(E2 f(E)) Exit<A, E2>
Maps the error type of this exit
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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