Class 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.
Since:
1.3
See Also:
  • Constructor Details

    • InvalidActionClosureException

      public InvalidActionClosureException(Closure<?> closure, Object argument)
      Creates a new InvalidActionClosureException.
      Since:
      1.3
  • Method Details

    • getClosure

      public Closure<?> getClosure()
      The closure being used as an action.
      Returns:
      The closure being used as an action.
      Since:
      1.3
    • getArgument

      public Object getArgument()
      The argument the action was executed with.
      Returns:
      The argument the action was executed with.
      Since:
      1.3