Top Description Fields Constructors Methods
groovy.lang

public Class MissingFieldException

extends GroovyRuntimeException
Class Inheritance

An exception occurred if a dynamic field dispatch fails with an unknown field. 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
private final String
private static final long
private final Class<T>

Constructor Summary

AccessConstructor and Description
public
public
public
MissingFieldException(String message, String field, Class<T> type)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name of the field that could not be found
getField
()

public Class<T>

Returns:

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

Inherited from groovy.lang.GroovyRuntimeException:
getLocationTextgetMessagegetMessageWithoutLocationTextgetModulegetNodesetModule

Field Detail

fieldback to summary
private final String field
serialVersionUIDback to summary
private static final long serialVersionUID

Hides groovy.lang.GroovyRuntimeException.serialVersionUID.

typeback to summary
private final Class<T> type

Constructor Detail

MissingFieldExceptionback to summary
public MissingFieldException(String field, Class<T> type)
MissingFieldExceptionback to summary
public MissingFieldException(String field, Class<T> type, Throwable e)
MissingFieldExceptionback to summary
public MissingFieldException(String message, String field, Class<T> type)

Method Detail

getFieldback to summary
public String getField()
Returns:String

the name of the field that could not be found

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

The type on which the field was attempted to be called