Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
core\exception\moodle_exception Class Reference
Inheritance diagram for core\exception\moodle_exception:
Exception core\antivirus\scanner_exception core\exception\access_denied_exception core\exception\coding_exception core\exception\file_serving_exception core\exception\invalid_dataroot_permissions core\exception\invalid_parameter_exception core\exception\invalid_response_exception core\exception\invalid_state_exception core\exception\not_found_exception core\exception\require_login_exception core\exception\required_capability_exception core\exception\webservice_parameter_exception core\invalid_persistent_exception core\message\inbound\processing_failed_exception core\session\exception core\update\checker_exception core_cache\exception\cache_exception

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.
 

Constructor & Destructor Documentation

◆ __construct()

core\exception\moodle_exception::__construct ( $errorcode,
$module = '',
$link = '',
$a = null,
$debuginfo = null )

Constructor.

Parameters
string$errorcodeThe name of the string from error.php to print
string$modulename of module
string$linkThe 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$aExtra words and phrases that might be required in the error string
string$debuginfooptional debugging information

Reimplemented in core\antivirus\scanner_exception, and core_cache\exception\cache_exception.

Member Data Documentation

◆ $link

string core\exception\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.


The documentation for this class was generated from the following file: