Package groovy.lang

Class ReadOnlyPropertyException

All Implemented Interfaces:
Serializable

public class ReadOnlyPropertyException extends MissingPropertyException
This exception is thrown if an attempt is made to set a read-only property.
See Also:
  • Constructor Details

    • ReadOnlyPropertyException

      public ReadOnlyPropertyException(String property, Class type)
      Creates an exception for a read-only property on the supplied type.
      Parameters:
      property - the property name
      type - the target type
    • ReadOnlyPropertyException

      public ReadOnlyPropertyException(String property, String classname)
      Creates an exception for a read-only property on the supplied class name.
      Parameters:
      property - the property name
      classname - the target class name