class Failure : Try<Nothing>
| <init> |
Failure(exception: Exception) |
| exception |
val exception: Exception |
| value |
val value: Nothing |
| isFailure |
val isFailure: Boolean |
| isSuccess |
val isSuccess: Boolean |
| component1 |
operator fun component1(): T? |
| component2 |
operator fun component2(): Exception? |
| ifFailure |
fun ifFailure(right: (Exception) -> Unit): Try<T> |
| not |
operator fun not(): Boolean |
| throwIfFailure |
fun throwIfFailure(): Try<T> |
| toEither |
fun toEither(): Either<T, Exception> |
| toOption |
fun toOption(): Option<T> |