org.gradle.api
Class InvalidActionClosureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.gradle.api.GradleException
org.gradle.api.InvalidActionClosureException
- All Implemented Interfaces:
- Serializable
public class InvalidActionClosureException
- extends GradleException
Thrown when a Closure is given as an Action implementation, but has the wrong signature.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
InvalidActionClosureException
public InvalidActionClosureException(Closure<?> closure,
Object argument)
getClosure
public Closure<?> getClosure()
- The closure being used as an action.
- Returns:
- The closure being used as an action.
getArgument
public Object getArgument()
- The argument the action was executed with.
- Returns:
- The argument the action was executed with.