getFailure

@Nullable
abstract fun getFailure(): @Nullable Throwable(source)

Returns the exception describing the task failure, if any.

Checking this value is meaningful only after the task has been executed.

Return

The exception, or null if the task did not fail.