Error

class Error<T>(message: String, data: T? = null) : Resource<T>

Represents the error state of a resource.

Parameters

T

The type of data for which an error occurred.

Constructors

Link copied to clipboard
constructor(message: String, data: T? = null)

Properties

Link copied to clipboard
val data: T?

The data associated with the resource, if available.

Link copied to clipboard

A descriptive message associated with the resource, usually for error states.