ActiveRecord\UndefinedPropertyException::__construct PHP Method

__construct() public method

Sets the exception message to show the undefined property's name.
public __construct ( $class_name, str $property_name ) : void
$property_name str name of undefined property
return void
    public function __construct($class_name, $property_name)
    {
        if (is_array($property_name)) {
            $this->message = implode("\r\n", $property_name);
            return;
        }
        $this->message = "Undefined property: {$class_name}->{$property_name} in {$this->file} on line {$this->line}";
        parent::__construct();
    }
UndefinedPropertyException