ErrorWithCache

data class ErrorWithCache<out Ok : Any, out Error : Any>(val error: Error, val cache: Ok? = null)

A utility class that can be used in tandem with Fetch to provide an error with some cached data.

Constructors

Link copied to clipboard
constructor(error: Error, cache: Ok? = null)

Properties

Link copied to clipboard
val cache: Ok? = null
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Transforms the encapsulated error and cache.

Link copied to clipboard

Transforms the encapsulated cache.

Link copied to clipboard

Transforms the encapsulated error.