class ReadOnlyException extends ModelException (View source)

Thrown when attempting to perform a write operation on a {@link Model} that is in read-only mode.

Methods

void
__construct(str $class_name, str $method_name)

Sets the exception message to show the undefined property's name.

Details

void __construct(str $class_name, str $method_name)

Sets the exception message to show the undefined property's name.

Parameters

str $class_name name of the model that is read only
str $method_name name of method which attempted to modify the model

Return Value

void