Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250530) (c39b7370636)
dml_missing_record_exception Class Reference

Caused by missing record that is required for normal operation. More...

Inheritance diagram for dml_missing_record_exception:
dml_exception core\exception\response_aware_exception

Public Member Functions

 __construct ($tablename, $sql='', ?array $params=null)
 Constructor.
 
 get_response_classname ()
 Get the class name of the response that should be used to handle this exception.
 

Public Attributes

array $params
 The SQL's parameters.
 
string $sql
 An SQL query.
 
string $tablename
 A table's name.
 

Detailed Description

Caused by missing record that is required for normal operation.

@subpackage dml

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

dml_missing_record_exception::__construct ( $tablename,
$sql = '',
?array $params = null )

Constructor.

Parameters
string$tablenameThe table name if known, '' if unknown.
string$sqlOptional SQL query.
array$paramsOptional SQL query's parameters.

Member Function Documentation

◆ get_response_classname()

dml_missing_record_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.


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