Top Description Fields Constructors Methods
org.codehaus.groovy.runtime.metaclass

public Class MethodSelectionException

extends GroovyRuntimeException
Class Inheritance
Imports
groovy.lang.GroovyRuntimeException, .MetaMethod, org.codehaus.groovy.reflection.CachedConstructor, org.codehaus.groovy.util.FastArray, java.lang.reflect.Modifier

This exception is thrown if the runtime is unable to select a method. This class builds the exception text when calling getMessage.

Note

This exception as for internal use only!

Since
Groovy 1.1

Field Summary

Modifier and TypeField and Description
private final Class<T>[]
private final String
private final FastArray
private static final long

Constructor Summary

AccessConstructor and Description
public
MethodSelectionException(String
name of the method
methodName
,
FastArray
a FastArray of methods
methods
,
Class<T>[]
the method call argument classes
arguments
)

Creates a new MethodSelectionException.

Method Summary

Modifier and TypeMethod and Description
private static void
appendClassNames(StringBuilder argBuf, Class<T>[] classes)

private void
public String
getMessage()

Overrides groovy.lang.GroovyRuntimeException.getMessage.

Returns the detail message string of this throwable.
Inherited from groovy.lang.GroovyRuntimeException:
getLocationTextgetMessageWithoutLocationTextgetModulegetNodesetModule

Field Detail

argumentsback to summary
private final Class<T>[] arguments
methodNameback to summary
private final String methodName
methodsback to summary
private final FastArray methods
serialVersionUIDback to summary
private static final long serialVersionUID

Hides groovy.lang.GroovyRuntimeException.serialVersionUID.

Constructor Detail

MethodSelectionExceptionback to summary
public MethodSelectionException(String methodName, FastArray methods, Class<T>[] arguments)

Creates a new MethodSelectionException.

Parameters
methodName:String

name of the method

methods:FastArray

a FastArray of methods

arguments:Class<T>[]

the method call argument classes

Method Detail

appendClassNamesback to summary
private static void appendClassNames(StringBuilder argBuf, Class<T>[] classes)
appendMethodsback to summary
private void appendMethods(StringBuilder buffer)
getMessageback to summary
public String getMessage()

Overrides groovy.lang.GroovyRuntimeException.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).