MDL-56668 competencies: Correct namespacing of coding_exception

This commit is contained in:
Michael Aherne
2016-11-03 14:06:21 +00:00
parent a8c64d6267
commit 9263132f8d
+1 -1
View File
@@ -221,7 +221,7 @@ class user_competency_plan extends persistent {
$record = $DB->get_record_sql($sql, array($planid, $competencyid));
if (!$record) {
throw new coding_exception('The competency does not belong to this plan: ' . $competencyid . ', ' . $planid);
throw new \coding_exception('The competency does not belong to this plan: ' . $competencyid . ', ' . $planid);
}
return new competency(0, $record);