Class Try.Failure<A>
java.lang.Object
com.jnape.palatable.lambda.adt.Try<A>
com.jnape.palatable.lambda.adt.Try.Failure<A>
- All Implemented Interfaces:
CoProduct2<Throwable, A, Try<A>>, Applicative<A,Try<?>>, Functor<A, Try<?>>, Monad<A, Try<?>>, MonadError<Throwable, A, Try<?>>, MonadRec<A, Try<?>>, Traversable<A, Try<?>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Try
catchError, catching, catching, discardL, discardR, ensuring, failure, flatMap, fmap, forfeit, lazyZip, orThrow, pure, pureTry, recover, success, throwError, toEither, toEither, toMaybe, trampolineM, traverse, trying, trying, withResources, withResources, withResources, zip
-
Field Details
-
t
-
-
Constructor Details
-
Failure
-
-
Method Details
-
orThrow
Description copied from class:TryIf this is a success value, return it. Otherwise, transform the captured failure withfnand throw the result. -
match
Description copied from interface:CoProduct2Type-safe convergence requiring a match against all potential types.- Type Parameters:
R- result type- Parameters:
aFn- morphismA -> RbFn- morphismB -> R- Returns:
- the result of applying the appropriate morphism to this coproduct's unwrapped value
-
equals
-
hashCode
-
toString
-