Package groovy.lang
Class IllegalPropertyAccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
groovy.lang.GroovyRuntimeException
groovy.lang.MissingPropertyException
groovy.lang.IllegalPropertyAccessException
- All Implemented Interfaces:
Serializable
An exception occurred if a dynamic property dispatch fails with a
field not accessible.
- See Also:
-
Field Summary
Fields inherited from class groovy.lang.MissingPropertyException
MPE -
Constructor Summary
ConstructorsConstructorDescriptionIllegalPropertyAccessException(Field field, Class clazz) Creates an exception for an inaccessible field-backed property.IllegalPropertyAccessException(String propertyName, Class clazz, int modifiers) Creates an exception for an inaccessible property. -
Method Summary
Methods inherited from class groovy.lang.MissingPropertyException
getMessageWithoutLocationText, getProperty, getTypeMethods inherited from class groovy.lang.GroovyRuntimeException
getLocationText, getMessage, getModule, getNode, setModuleMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IllegalPropertyAccessException
Creates an exception for an inaccessible property.- Parameters:
propertyName- the property nameclazz- the declaring classmodifiers- the member modifiers
-
IllegalPropertyAccessException
Creates an exception for an inaccessible field-backed property.- Parameters:
field- the inaccessible fieldclazz- the declaring class
-