public class IncorrectClosureArgumentsException
extends GroovyRuntimeException
An exception occurred when invoking a Closure with the wrong number and/or types of arguments
| Constructor and description |
|---|
IncorrectClosureArgumentsException(Closure closure, Object arguments, Class[] expected)Creates an exception describing mismatched closure arguments. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Object |
getArguments()Returns the supplied arguments. |
|
public Closure |
getClosure()Returns the target closure. |
|
public Class[] |
getExpected()Returns the expected parameter types. |
| Methods inherited from class | Name |
|---|---|
class GroovyRuntimeException |
getLocationText, getMessage, getMessageWithoutLocationText, getModule, getNode, setModule |
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.