Top Description Fields Constructors Methods
groovy.lang

public Class MissingMethodException

extends GroovyRuntimeException
Class Inheritance
Known Direct Subclasses
org.codehaus.groovy.runtime.metaclass.MissingMethodExceptionNoStack
Imports
org.codehaus.groovy.runtime.InvokerHelper, .MethodRankHelper

An exception occurred if a dynamic method dispatch fails with an unknown method.

Note that the Missing*Exception classes were named for consistency and to avoid conflicts with JDK exceptions of the same name.

Field Summary

Modifier and TypeField and Description
private final Object[]
private final boolean
private final String
private static final long
private final Class<?>

Constructor Summary

AccessConstructor and Description
public
MissingMethodException(String method, Class<?> type, Object[] arguments)

public
MissingMethodException(String method, Class<?> type, Object[] arguments, boolean isStatic)

Method Summary

Modifier and TypeMethod and Description
public Object[]
public String
getMessage()

Overrides groovy.lang.GroovyRuntimeException.getMessage.

Returns the detail message string of this throwable.
public String

Returns:

the name of the method that could not be found
getMethod
()

public Class<?>

Returns:

The type on which the method was attempted to be called
getType
()

public boolean

Returns:

Whether the method was called in a static way, i.e. on a class rather than an object.
isStatic
()

Inherited from groovy.lang.GroovyRuntimeException:
getLocationTextgetMessageWithoutLocationTextgetModulegetNodesetModule

Field Detail

argumentsback to summary
private final Object[] arguments
isStaticback to summary
private final boolean isStatic
methodback to summary
private final String method
serialVersionUIDback to summary
private static final long serialVersionUID

Hides groovy.lang.GroovyRuntimeException.serialVersionUID.

typeback to summary
private final Class<?> type

Constructor Detail

MissingMethodExceptionback to summary
public MissingMethodException(String method, Class<?> type, Object[] arguments)
MissingMethodExceptionback to summary
public MissingMethodException(String method, Class<?> type, Object[] arguments, boolean isStatic)

Method Detail

getArgumentsback to summary
public Object[] getArguments()
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).

Annotations
@Override
getMethodback to summary
public String getMethod()
Returns:String

the name of the method that could not be found

getTypeback to summary
public Class<?> getType()
Returns:Class<?>

The type on which the method was attempted to be called

isStaticback to summary
public boolean isStatic()
Returns:boolean

Whether the method was called in a static way, i.e. on a class rather than an object.