Failure

data class Failure<T>(val cgsError: CgsError, val data: T? = null, val failedAt: Date = Date()) : CgsStreamState<T>

The request failed.

Parameters

cgsError

what went wrong.

data

the last known value if the SDK still holds one, null otherwise. Not null means the screen can stay up with a discreet error rather than falling back to an error page.

failedAt

when it failed.

Constructors

Link copied to clipboard
constructor(cgsError: CgsError, data: T? = null, failedAt: Date = Date())

Properties

Link copied to clipboard
Link copied to clipboard
val data: T? = null
Link copied to clipboard

Functions

Link copied to clipboard

This state as a Refreshing one, keeping whatever data it holds.