- run
Creates a side effect try from given runnable. Don't forget to either throw or
log the exception in
- apply
Creates a new try from given value provider.
- onFailure
Run the given action if and only if this is a failure.
- onComplete
Always run the given action, works like a finally clause.
- throwException
Propagate/throw the exception in case of failure.
- onSuccess
Run the given action if and only if this is a success.
- unwrap
In case of failure unwrap the exception provided by calling
Throwable#getCause(). Useful for clean/s
- of
Functional try-with-resources with 4 inputs.
- with
Functional try-with-resources with 4 inputs.
- failure
Get a new failure value.
- getCause
Cause for failure or empty optional for success result.
- isSuccess
True in case of success.