Error

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

Represents the error state of a resource.

Parameters

data

The data associated with the error state.

message

A message describing the error.

Constructors

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

Properties

Link copied to clipboard
val data: T?

The actual data.

Link copied to clipboard

A message associated with the resource, usually describing an error.