onError

abstract fun onError(@Nullable error: K)

Called when the task fails with an error.

Parameters

error

the error details, or null if no details are available