| Modifier and Type | Method and Description |
|---|---|
<V> Result<V,java.lang.Exception> |
of(kotlin.jvm.functions.Function0<? extends V> function)
Invokes a function and wraps it in a
class Result, returning an class Err
if an Exception was thrown, otherwise class Ok. |
public <V> Result<V,java.lang.Exception> of(kotlin.jvm.functions.Function0<? extends V> function)
Invokes a function and wraps it in a class Result, returning an class Err
if an Exception was thrown, otherwise class Ok.
class Result,
class Err,
Exception,
class Ok