Package groovy.lang

Class IllegalPropertyAccessException

All Implemented Interfaces:
Serializable

public class IllegalPropertyAccessException extends MissingPropertyException
An exception occurred if a dynamic property dispatch fails with a field not accessible.
See Also:
  • Constructor Details

    • IllegalPropertyAccessException

      public IllegalPropertyAccessException(String propertyName, Class clazz, int modifiers)
      Creates an exception for an inaccessible property.
      Parameters:
      propertyName - the property name
      clazz - the declaring class
      modifiers - the member modifiers
    • IllegalPropertyAccessException

      public IllegalPropertyAccessException(Field field, Class clazz)
      Creates an exception for an inaccessible field-backed property.
      Parameters:
      field - the inaccessible field
      clazz - the declaring class