api / org.gradle.api.artifacts / ResolvedConfiguration / rethrowFailure

rethrowFailure

abstract fun rethrowFailure(): Unit

A resolve of a configuration that is not successful does not automatically throws an exception. Such a exception is only thrown if the result of a resolve is accessed. You can force the throwing of such an exception by calling this method.

This method does nothing when resolution was successful.

Exceptions

ResolveException - when the resolve was not successful.