groovy.lang
Class IncorrectClosureArgumentsException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bygroovy.lang.GroovyRuntimeException
                  extended bygroovy.lang.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

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

Field Summary
private  java.lang.Object arguments
           
private  Closure closure
           
private  java.lang.Class[] expected
           
 
Fields inherited from class groovy.lang.GroovyRuntimeException
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
IncorrectClosureArgumentsException(Closure closure, java.lang.Object arguments, java.lang.Class[] expected)
           
 
Method Summary
 java.lang.Object getArguments()
           
 Closure getClosure()
           
 java.lang.Class[] getExpected()
           
 
Methods inherited from class groovy.lang.GroovyRuntimeException
getLocationText, getMessage, 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
 

Field Detail

closure

private Closure closure

arguments

private java.lang.Object arguments

expected

private java.lang.Class[] expected
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()


Copyright © 2003-2005 The Codehaus. All Rights Reserved.