Groovy 2.2.0

groovy.lang
[Java] Class IncorrectClosureArgumentsException

java.lang.Object
  java.lang.Throwable
      java.lang.Exception
          java.lang.RuntimeException
              groovy.lang.GroovyRuntimeException
                  groovy.lang.IncorrectClosureArgumentsException

public class IncorrectClosureArgumentsException
extends GroovyRuntimeException

An exception occurred when invoking a Closure with the wrong number and/or types of arguments

Authors:
James Strachan
Version:
\$Revision\$


Constructor Summary
IncorrectClosureArgumentsException(Closure closure, Object arguments, Class[] expected)

 
Method Summary
Object getArguments()

Closure getClosure()

Class[] getExpected()

 
Methods inherited from class GroovyRuntimeException
getLocationText, getMessage, getMessageWithoutLocationText, getModule, getNode, setModule
 
Methods inherited from class RuntimeException
printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, getMessage, getLocalizedMessage, getStackTrace, setStackTrace, addSuppressed, getSuppressed, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll
 

Constructor Detail

IncorrectClosureArgumentsException

public IncorrectClosureArgumentsException(Closure closure, Object arguments, Class[] expected)


 
Method Detail

getArguments

public Object getArguments()


getClosure

public Closure getClosure()


getExpected

public Class[] getExpected()


 

Copyright © 2003-2013 The Codehaus. All rights reserved.