getError

abstract fun getError(): Exception?

Return

The error for the task, if set. null otherwise.