Top Description Fields Constructors Methods
groovy.lang

public Class MissingPropertyException

extends GroovyRuntimeException
Class Inheritance
Known Direct Subclasses
groovy.lang.ReadOnlyPropertyException, org.codehaus.groovy.runtime.metaclass.MissingPropertyExceptionNoStack, groovy.lang.IllegalPropertyAccessException
Imports
org.codehaus.groovy.runtime.MethodRankHelper

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

Modifier and TypeField and Description
public static final Object
private final String
private static final long
private final Class<T>

Constructor Summary

AccessConstructor and Description
public
public
public
public
MissingPropertyException(String message, String property, Class<T> type)

Method Summary

Modifier and TypeMethod and Description
public String
public String

Returns:

the name of the property that could not be found
getProperty
()

public Class<T>

Returns:

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

Inherited from groovy.lang.GroovyRuntimeException:
getLocationTextgetMessagegetModulegetNodesetModule

Field Detail

MPEback to summary
public static final Object MPE
propertyback to summary
private final String property
serialVersionUIDback to summary
private static final long serialVersionUID

Hides groovy.lang.GroovyRuntimeException.serialVersionUID.

typeback to summary
private final Class<T> type

Constructor Detail

MissingPropertyExceptionback to summary
public MissingPropertyException(String property, Class<T> type)
MissingPropertyExceptionback to summary
public MissingPropertyException(String property, Class<T> type, Throwable t)
MissingPropertyExceptionback to summary
public MissingPropertyException(String message)
MissingPropertyExceptionback to summary
public MissingPropertyException(String message, String property, Class<T> type)

Method Detail

getMessageWithoutLocationTextback to summary
public String getMessageWithoutLocationText()

Overrides groovy.lang.GroovyRuntimeException.getMessageWithoutLocationText.

getPropertyback to summary
public String getProperty()
Returns:String

the name of the property that could not be found

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

The type on which the property was attempted to be called