NetworkFailure

data class NetworkFailure : ApiResult.Failure<Nothing>

A failure due to a network problem given by error. The error could be from a number of different sources, e.g. connectivity

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: IOException