Package groovy.lang
Class ReadOnlyPropertyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
groovy.lang.GroovyRuntimeException
groovy.lang.MissingPropertyException
groovy.lang.ReadOnlyPropertyException
- All Implemented Interfaces:
Serializable
This exception is thrown if an attempt is made to set a read-only property.
- See Also:
-
Field Summary
Fields inherited from class groovy.lang.MissingPropertyException
MPE -
Constructor Summary
ConstructorsConstructorDescriptionReadOnlyPropertyException(String property, Class type) Creates an exception for a read-only property on the supplied type.ReadOnlyPropertyException(String property, String classname) Creates an exception for a read-only property on the supplied class name. -
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
-
ReadOnlyPropertyException
Creates an exception for a read-only property on the supplied type.- Parameters:
property- the property nametype- the target type
-
ReadOnlyPropertyException
Creates an exception for a read-only property on the supplied class name.- Parameters:
property- the property nameclassname- the target class name
-