api / org.gradle.api / InvalidActionClosureException

InvalidActionClosureException

open class InvalidActionClosureException : GradleException

Thrown when a Closure is given as an Action implementation, but has the wrong signature.

Constructors

<init>

InvalidActionClosureException(closure: Closure<*>, argument: Any)

Functions

getArgument

open fun getArgument(): Any

The argument the action was executed with.

getClosure

open fun getClosure(): Closure<*>

The closure being used as an action.