Returns the given function applied to the value from this Success or returns this if this is a Failure
.
Returns the given function applied to the value from this Success or returns this if this is a Failure
.
Alias for flatMap
.
Converts this to a Failure
if the predicate is not satisfied.
Converts this to a Failure
if the predicate is not satisfied.
Converts this to a Failure
if the predicate is not satisfied.
Returns the given function applied to the value from this Success
or returns this if this is a Failure
.
Transforms a nested Try
, i.
Applies the given function f if this is a Result.
Returns the value from this Success
or throws the exception if this is a Failure
.
Returns the value from this Success
or the given argument if this is a Failure
.
Returns the value from this Success
or the given argument if this is a Failure
.
Returns true if the Try
is a Failure
, false otherwise.
Returns true if the Try
is a Success
, false otherwise.
Maps the given function to the value from this Success
or returns this if this is a Failure
.
Calls the exceptionHandler with the exception if this is a Failure
.
Calls the exceptionHandler with the exception if this is a Failure
.
Returns None
if this is a Failure
or a Some
containing the value if this is a Success
.
Returns None
if this is a Failure
or a Some
containing the value if this is a Success
.