Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
dml_write_exception Class Reference

DML write exception - triggered by some SQL syntax errors, etc. More...

Inheritance diagram for dml_write_exception:
dml_exception

Public Member Functions

 __construct ($error, $sql=null, ?array $params=null)
 Constructor.
 

Public Attributes

string $error
 The name of the string from error.php to print.
 
array $params
 The SQL's related parameters.
 
string $sql
 The SQL that ran just before this write error.
 

Detailed Description

DML write exception - triggered by some SQL syntax errors, etc.

@subpackage dml

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

Constructor & Destructor Documentation

◆ __construct()

dml_write_exception::__construct ( $error,
$sql = null,
?array $params = null )

Constructor.

Parameters
string$errorThe name of the string from error.php to print.
string$sqlThe SQL that ran just before this write error.
array$paramsThe SQL's related parameters.(optional)

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