Failure

data class Failure<T, E>(val error: E) : Result<T, E>

Represents a failed fetch operation.

Parameters

T

The type of the value fetched

E

The error type

Constructors

Link copied to clipboard
constructor(error: E)

Properties

Link copied to clipboard
val error: E

The error that occurred

Functions

Link copied to clipboard
fun valueOrNull(): T?

Shortcut function to ignore a failure.