getFailure

@Nullable
abstract fun getFailure(): Throwable

Returns the exception describing the task failure, if any.

Return

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