Package groovy.lang

Class IncorrectClosureArgumentsException

  • All Implemented Interfaces:
    java.io.Serializable

    public class IncorrectClosureArgumentsException
    extends GroovyRuntimeException
    An exception occurred when invoking a Closure with the wrong number and/or types of arguments
    See Also:
    Serialized Form
    • Constructor Detail

      • IncorrectClosureArgumentsException

        public IncorrectClosureArgumentsException​(Closure closure,
                                                  java.lang.Object arguments,
                                                  java.lang.Class[] expected)
    • Method Detail

      • getArguments

        public java.lang.Object getArguments()
      • getClosure

        public Closure getClosure()
      • getExpected

        public java.lang.Class[] getExpected()