sealed class Result<out T>
(common, jvm)
isSuccess |
val isSuccess: Boolean |
(common, jvm)
exceptionOrNull |
fun exceptionOrNull(): Throwable? |
(common, jvm)
getOrNull |
fun getOrNull(): T? |
(common, jvm)
failure |
fun <T> failure(error: Throwable): Result<T> |
(common, jvm)
runCatching |
fun <R> runCatching(block: () -> R): Result<R> |
(common, jvm)
success |
fun <T> success(value: T): Result<T> |