public class MissingMethodException
extends GroovyRuntimeException
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.
| Constructor and description |
|---|
MissingMethodException(String method, Class<?> type, Object[] arguments)Creates an exception for a missing instance method. |
MissingMethodException(String method, Class<?> type, Object[] arguments, boolean isStatic)Creates an exception for a missing method. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Object[] |
getArguments()Returns the supplied arguments. |
|
public String |
getMessage()Returns a detailed message including argument and suggestion information. |
|
public String |
getMethod()
|
|
public Class<?> |
getType()
|
|
public boolean |
isStatic()
|
| Methods inherited from class | Name |
|---|---|
class GroovyRuntimeException |
getLocationText, getMessage, getMessageWithoutLocationText, getModule, getNode, setModule |
Creates an exception for a missing instance method.
method - the missing method nametype - the target typearguments - the supplied argumentsReturns the supplied arguments.
Returns a detailed message including argument and suggestion information.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.