Error

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

Class representing an erroneous resource.

Parameters

T

The type of the data.

Constructors

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

Properties

Link copied to clipboard
val data: T?

The data of the resource. It can be null.

Link copied to clipboard

The message of the resource. It can be null.