getException

abstract suspend fun getException(): Throwable(source)

Suspends until the worker throws an exception, then returns it.