UnknownFailure

class UnknownFailure : ApiResult.Failure<Nothing>

An unknown error, given by error

Functions

Link copied to clipboard
fun getSuccessData(): Nothing

Get the data from a Success result. Throws if this result is a Failure

Link copied to clipboard
fun getSuccessDataOrNull(): Nothing?

Get the data from a Success result, or null if this result is a Failure

Link copied to clipboard
fun isSuccess(): Boolean

Is this result a Success

Properties

Link copied to clipboard
val error: Throwable