Package io.reacted.patterns
Class Try.Failure<T>
java.lang.Object
io.reacted.patterns.Try<T>
io.reacted.patterns.Try.Failure<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.reacted.patterns.Try
Try.Failure<T>, Try.Success<T>, Try.TryConsumer<T>, Try.TryMapper<T,R>, Try.TryResourceSupplier<T>, Try.TryValueSupplier<T> -
Field Summary
-
Method Summary
Methods inherited from class io.reacted.patterns.Try
filter, filter, flatMap, identity, identity, ifError, ifSuccess, ifSuccessOrElse, isFailure, map, mapOrElse, noOp, of, ofCallable, ofFailure, ofRunnable, ofSuccess, orElse, orElse, orElseGet, orElseGet, orElseGet, orElseRecover, orElseSneakyThrow, orElseThrow, orElseTry, orElseTry, orElseTry, orElseTry, peek, peek, peekFailure, peekFailure, peekSuccess, recover, recover, recover, recover, stream, toOptional, withChainedResources, withResources, withResources
-
Method Details
-
valueOf
-
get
A failed Try does not hold any value- Specified by:
getin classTry<T>- Returns:
- Nothing
- Throws:
UnsupportedOperationException- This operation is not allowed on a Failure
-
isSuccess
public boolean isSuccess() -
getCause
-