groovy.lang
Class IncorrectClosureArgumentsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by groovy.lang.GroovyRuntimeException
                  extended by groovy.lang.IncorrectClosureArgumentsException
All Implemented Interfaces:
Serializable

public class IncorrectClosureArgumentsException
extends GroovyRuntimeException

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

Version:
$Revision: 6817 $
Author:
James Strachan
See Also:
Serialized Form

Constructor Summary
IncorrectClosureArgumentsException(Closure closure, Object arguments, Class[] expected)
           
 
Method Summary
 Object getArguments()
           
 Closure getClosure()
           
 Class[] getExpected()
           
 
Methods inherited from class groovy.lang.GroovyRuntimeException
getLocationText, getMessage, getMessageWithoutLocationText, getModule, getNode, setModule
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, 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

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-2009 The Codehaus. All rights reserved.