onError

abstract fun onError(throwable: Throwable)

Called when an error occurs during the task execution.

Parameters

throwable

The throwable representing the error.