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

    • InvalidActionClosureException

      public InvalidActionClosureException(Closure<?> closure, Object argument)
  • Method Details

    • 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.