Error

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

Represents a failed API operation.

Parameters

throwable

The error that occurred.

data

Optional data, if available despite the error.

Constructors

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

Properties

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

Functions

Link copied to clipboard

Checks if the resource represents an error.

Link copied to clipboard

Checks if the resource represents a successful operation.