common / com.schibsted.account.common.lib / Try / Failure

Failure

data class Failure<out T> : Try<T>

Constructors

<init>

Failure(exception: Throwable)

Properties

exception

val exception: Throwable

Functions

get

fun get(): T

isFailure

fun isFailure(): Boolean

isSuccess

fun isSuccess(): Boolean

Inherited Functions

flatMap

fun <O> flatMap(block: (T) -> Try<O>): Try<O>

fold

fun <O> fold(onError: (Throwable) -> O, onSuccess: (T) -> O): O

map

fun <O> map(block: (T) -> O): Try<O>