|
Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Base Moodle Exception class. More...
Public Member Functions | |
| __construct ($errorcode, $module='', $link='', $a=NULL, $debuginfo=null) | |
| Constructor. More... | |
Public Attributes | |
| mixed | $a |
| Extra words and phrases that might be required in the error string. | |
| string | $debuginfo |
| Optional information to aid the debugging process. | |
| string | $errorcode |
| The name of the string from error.php to print. | |
| string | $link |
| The url where the user will be prompted to continue. More... | |
| string | $module |
| The name of module. | |
Base Moodle Exception class.
Although this class is defined here, you cannot throw a moodle_exception until after moodlelib.php has been included (which will happen very soon).
@subpackage lib
| moodle_exception::__construct | ( | $errorcode, | |
$module = '', |
|||
$link = '', |
|||
$a = NULL, |
|||
$debuginfo = null |
|||
| ) |
Constructor.
| string | $errorcode | The name of the string from error.php to print |
| string | $module | name of module |
| string | $link | The url where the user will be prompted to continue. If no url is provided the user will be directed to the site index page. |
| mixed | $a | Extra words and phrases that might be required in the error string |
| string | $debuginfo | optional debugging information |
Reimplemented in core\antivirus\scanner_exception, portfolio_export_exception, moodle_quiz_exception, file_reference_exception, and ddl_dependency_exception.
| string moodle_exception::$link |
The url where the user will be prompted to continue.
If no url is provided the user will be directed to the site index page.