getFailure

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

Returns the exception describing the task failure, if any.

Return

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