Error

constructor(data: T? = null, error: Throwable)

Parameters

T

The type of data.

data

The optional data result of the operation.

error

The error that occurred during the operation.