|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException groovy.lang.GroovyRuntimeException groovy.lang.MissingPropertyException
public class MissingPropertyException extends GroovyRuntimeException
An exception occurred if a dynamic property dispatch fails with an unknown property. Note that the Missing*Exception classes were named for consistency and to avoid conflicts with JDK exceptions of the same name.
Field Summary | |
---|---|
static java.lang.Object |
MPE
|
Constructor Summary | |
MissingPropertyException(java.lang.String property, java.lang.Class type)
|
|
MissingPropertyException(java.lang.String property, java.lang.Class type, java.lang.Throwable t)
|
|
MissingPropertyException(java.lang.String message)
|
|
MissingPropertyException(java.lang.String message, java.lang.String property, java.lang.Class type)
|
Method Summary | |
---|---|
java.lang.String
|
getMessageWithoutLocationText()
|
java.lang.String
|
getProperty()
@return the name of the property that could not be found |
java.lang.Class
|
getType()
@return The type on which the property was attempted to be called |
Methods inherited from class GroovyRuntimeException | |
---|---|
getLocationText, getMessage, getMessageWithoutLocationText, getModule, getNode, setModule |
Methods inherited from class java.lang.RuntimeException | |
---|---|
java.lang.RuntimeException#printStackTrace(), java.lang.RuntimeException#printStackTrace(java.io.PrintStream), java.lang.RuntimeException#printStackTrace(java.io.PrintWriter), java.lang.RuntimeException#fillInStackTrace(), java.lang.RuntimeException#getCause(), java.lang.RuntimeException#initCause(java.lang.Throwable), java.lang.RuntimeException#toString(), java.lang.RuntimeException#getMessage(), java.lang.RuntimeException#getLocalizedMessage(), java.lang.RuntimeException#getStackTrace(), java.lang.RuntimeException#setStackTrace([Ljava.lang.StackTraceElement;), java.lang.RuntimeException#addSuppressed(java.lang.Throwable), java.lang.RuntimeException#getSuppressed(), java.lang.RuntimeException#wait(long), java.lang.RuntimeException#wait(long, int), java.lang.RuntimeException#wait(), java.lang.RuntimeException#equals(java.lang.Object), java.lang.RuntimeException#hashCode(), java.lang.RuntimeException#getClass(), java.lang.RuntimeException#notify(), java.lang.RuntimeException#notifyAll() |
Field Detail |
---|
public static final java.lang.Object MPE
Constructor Detail |
---|
public MissingPropertyException(java.lang.String property, java.lang.Class type)
public MissingPropertyException(java.lang.String property, java.lang.Class type, java.lang.Throwable t)
public MissingPropertyException(java.lang.String message)
public MissingPropertyException(java.lang.String message, java.lang.String property, java.lang.Class type)
Method Detail |
---|
public java.lang.String getMessageWithoutLocationText()
public java.lang.String getProperty()
public java.lang.Class getType()
Groovy Documentation