org.codehaus.groovy.runtime.metaclass
Class MethodSelectionException

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 org.codehaus.groovy.runtime.metaclass.MethodSelectionException
All Implemented Interfaces:
Serializable

public class MethodSelectionException
extends GroovyRuntimeException

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
Author:
Jochen Theodorou
See Also:
Serialized Form

Constructor Summary
MethodSelectionException(String methodName, FastArray methods, Class[] arguments)
          Creates a new MethodSelectionException.
 
Method Summary
 String getMessage()
           
 
Methods inherited from class groovy.lang.GroovyRuntimeException
getLocationText, 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

MethodSelectionException

public MethodSelectionException(String methodName,
                                FastArray methods,
                                Class[] arguments)
Creates a new MethodSelectionException.

Parameters:
methodName - name of the method
methods - a FastArray of methods
arguments - the method call argument classes
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class GroovyRuntimeException

Copyright © 2003-2010 The Codehaus. All rights reserved.