Class MethodSelectionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
groovy.lang.GroovyRuntimeException
org.codehaus.groovy.runtime.metaclass.MethodSelectionException
- All Implemented Interfaces:
Serializable
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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMethodSelectionException(String methodName, FastArray methods, Class[] arguments) Creates a new MethodSelectionException. -
Method Summary
Modifier and TypeMethodDescriptionReturns a descriptive error message listing which method could not be selected and the available methods that could have been chosen.Methods inherited from class groovy.lang.GroovyRuntimeException
getLocationText, getMessageWithoutLocationText, getModule, getNode, setModuleMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MethodSelectionException
Creates a new MethodSelectionException.- Parameters:
methodName- name of the methodmethods- a FastArray of methodsarguments- the method call argument classes
-
-
Method Details
-
getMessage
Returns a descriptive error message listing which method could not be selected and the available methods that could have been chosen.- Overrides:
getMessagein classGroovyRuntimeException- Returns:
- the error message describing the method selection failure
-