Record::msg - jcobban/Genealogy GitHub Wiki

$record->msg

Up: class Record

This protected attribute is a string that contains error messages accumulated primarily in the constructor. The value can be read using the method $record‑>getErrors(). Typically a constructor which uses this attribute appends the value to the global variable $msg so the errors are visible to users in a human readable form instead of throwing an exception, which if not caught by the application code would not be helpful to end users. If the value of this attribute is not an empty string then calling method $record->save() does not update the database.

Next: static Record::$info