Class 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
See Also:
  • Constructor Details

    • 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 Details

    • getMessage

      public String getMessage()
      Returns a descriptive error message listing which method could not be selected and the available methods that could have been chosen.
      Overrides:
      getMessage in class GroovyRuntimeException
      Returns:
      the error message describing the method selection failure