groovy.lang
public class: MissingPropertyException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
groovy.lang.GroovyRuntimeException
groovy.lang.MissingPropertyException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IllegalPropertyAccessException, ReadOnlyPropertyException, MissingPropertyExceptionNoStack
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 |
|---|
| public static final Object | MPE | |
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from groovy.lang.MissingPropertyException Detail: |
public String getMessageWithoutLocationText() {
final Throwable cause = getCause();
if (cause == null) {
if (super.getMessageWithoutLocationText() != null) {
return super.getMessageWithoutLocationText();
}
return "No such property: " + property + " for class: " + type.getName();
}
return "No such property: " + property + " for class: " + type.getName() + ". Reason: " + cause;
}
|
public String getProperty() {
return property;
}
|
public Class getType() {
return type;
}
|