@NonNull open static fun <R : Any!> ofFailure(@NonNull supplier: Supplier<out Throwable!>): Try<R>
Creates a Failure
from a given Supplier
that returns a Throwable
.
supplier
- Supplier<out Throwable!>: returns a Throwable
, cannot be null!