Class InvalidActionClosureException

  • All Implemented Interfaces:
    java.io.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getArgument()
      The argument the action was executed with.
      Closure<?> getClosure()
      The closure being used as an action.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InvalidActionClosureException

        public InvalidActionClosureException​(Closure<?> closure,
                                             java.lang.Object argument)
    • Method Detail

      • getClosure

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

        public java.lang.Object getArgument()
        The argument the action was executed with.
        Returns:
        The argument the action was executed with.