Error

data class Error(val exception: Exception) : Result<Nothing>

Constructors

Link copied to clipboard
constructor(exception: Exception)

Properties

Link copied to clipboard
val <T> Result<T>.data: T?

Value of Result.

Link copied to clipboard
val exception: Exception

Functions

Link copied to clipboard
fun <T> Result<T>.successOr(fallback: T): T
Link copied to clipboard
inline fun <T> Result<T>.updateOnSuccess(liveData: MutableLiveData<T>)

Updates the value of liveData if Result is of type Result.Success.