Class MissingMethodExceptionNoStack
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
groovy.lang.GroovyRuntimeException
groovy.lang.MissingMethodException
org.codehaus.groovy.runtime.metaclass.MissingMethodExceptionNoStack
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MissingMethodExecutionFailed
A
MissingMethodException that does not populate the stack trace.
This exception is optimized for performance when the stack trace is not needed,
as stack trace generation can be expensive.
This exception is for internal use only.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMissingMethodExceptionNoStack(String method, Class type, Object[] arguments) Constructs a new MissingMethodExceptionNoStack.MissingMethodExceptionNoStack(String method, Class type, Object[] arguments, boolean isStatic) Constructs a new MissingMethodExceptionNoStack. -
Method Summary
Modifier and TypeMethodDescriptionOverrides the default stack trace filling to optimize performance.Methods inherited from class groovy.lang.MissingMethodException
getArguments, getMessage, getMethod, getType, isStaticMethods inherited from class groovy.lang.GroovyRuntimeException
getLocationText, getMessageWithoutLocationText, getModule, getNode, setModuleMethods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingMethodExceptionNoStack
Constructs a new MissingMethodExceptionNoStack.- Parameters:
method- the name of the missing methodtype- the class where the method was not foundarguments- the arguments that were passed to the missing method call
-
MissingMethodExceptionNoStack
public MissingMethodExceptionNoStack(String method, Class type, Object[] arguments, boolean isStatic) Constructs a new MissingMethodExceptionNoStack.- Parameters:
method- the name of the missing methodtype- the class where the method was not foundarguments- the arguments that were passed to the missing method callisStatic- true if the missing method was a static method, false otherwise
-
-
Method Details
-
fillInStackTrace
Overrides the default stack trace filling to optimize performance. Returns this exception without populating the stack trace.- Overrides:
fillInStackTracein classThrowable- Returns:
- this exception unchanged
-