Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
core\exception\not_found_exception Class Reference
Inheritance diagram for core\exception\not_found_exception:
core\exception\moodle_exception core\exception\response_aware_exception Exception

Public Member Functions

 __construct (string $itemtype, string $identifier,)
 Constructor for a new not found exception.
 
 get_response_classname ()
 Get the class name of the response that should be used to handle this exception.
 

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\not_found_exception::__construct ( string $itemtype,
string $identifier )

Constructor for a new not found exception.

Parameters
string$itemtypeThe type of item that was not found.
string$identifierThe identifier of the item that was not found.

Member Function Documentation

◆ get_response_classname()

core\exception\not_found_exception::get_response_classname ( )

Get the class name of the response that should be used to handle this exception.

Return values
string

Implements core\exception\response_aware_exception.

Member Data Documentation

◆ $link

string core\exception\moodle_exception::$link
inherited

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: