mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-20636 Reveiw all throw statements.
This commit is contained in:
parent
f7970e3ca7
commit
88f0eb1546
15 changed files with 56 additions and 80 deletions
|
@ -314,7 +314,7 @@ abstract class testing_db_record_builder {
|
|||
$records = array();
|
||||
foreach ($table as $row) {
|
||||
if (count($row) != count($columns)) {
|
||||
throw new Exception("Row contains the wrong number of fields.");
|
||||
throw new coding_exception("Row contains the wrong number of fields.");
|
||||
}
|
||||
$rec = new stdClass();
|
||||
foreach ($columns as $i => $name) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue