Error

class Error<T>(data: T? = null, error: Throwable) : Resource<T>

Represents an error state with optional data and an error.

Parameters

T

The type of data.

data

The optional data result of the operation.

error

The error that occurred during the operation.

Constructors

Link copied to clipboard
constructor(data: T? = null, error: Throwable)

Properties

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