api / org.gradle.api.tasks / TaskState / rethrowFailure

rethrowFailure

abstract fun rethrowFailure(): Unit

Throws the task failure, if any. Does nothing if the task did not fail.