Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Base Moodle Exception class. More...
Public Member Functions | |
__construct ($errorcode, $module='', $link='', $a=NULL, $debuginfo=null) | |
Constructor. | |
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. | |
string | $module |
The name of module. | |
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, ddl_dependency_exception, file_reference_exception, mod_bigbluebuttonbn\local\exceptions\server_not_available_exception, moodle_quiz_exception, and portfolio_export_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.