Skip to content

Commit

Permalink
MDL-57273 core: Migrating persistent from core_competency into core
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart authored and Damyon Wiese committed Jan 20, 2017
1 parent 5130953 commit 2198e0e
Show file tree
Hide file tree
Showing 8 changed files with 1,034 additions and 970 deletions.
18 changes: 5 additions & 13 deletions competency/classes/invalid_persistent_exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,16 @@

defined('MOODLE_INTERNAL') || die();

debugging('The class core_competency\\invalid_persistent_exception is deprecated. ' .
'Please use core\\invalid_persistent_exception instead.');

/**
* Invalid persistent exception class.
*
* @package core_competency
* @copyright 2015 Frédéric Massart - FMCorz.net
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @deprecated since Moodle 3.3
*/
class invalid_persistent_exception extends \moodle_exception {

public function __construct(array $errors = array()) {
$forhumans = array();
$debuginfo = array();
foreach ($errors as $key => $message) {
$debuginfo[] = "$key: $message";
$forhumans[] = $message;
}
parent::__construct('invalidpersistenterror', 'core_competency', null,
implode(', ', $forhumans), implode(' - ', $debuginfo));
}

class invalid_persistent_exception extends \core\invalid_persistent_exception {
}
Loading

0 comments on commit 2198e0e

Please sign in to comment.