MediaWiki
master
DBError.php
Go to the documentation of this file.
1
<?php
20
namespace
Wikimedia\Rdbms
;
21
22
use RuntimeException;
23
36
class
DBError
extends
RuntimeException {
38
public
$db
;
39
47
public
function
__construct
( ?
IDatabase
$db
, $error, \Throwable $prev =
null
) {
48
parent::__construct( $error, 0, $prev );
49
$this->db =
$db
;
50
}
51
}
Wikimedia\Rdbms\DBError
Database error base class.
Definition
DBError.php:36
Wikimedia\Rdbms\DBError\$db
IDatabase null $db
Definition
DBError.php:38
Wikimedia\Rdbms\DBError\__construct
__construct(?IDatabase $db, $error, \Throwable $prev=null)
Construct a database error.
Definition
DBError.php:47
Wikimedia\Rdbms\IDatabase
Basic database interface for live and lazy-loaded relation database handles.
Definition
IDatabase.php:39
Wikimedia\Rdbms
Definition
ChangedTablesTracker.php:3
includes
libs
rdbms
exception
DBError.php
Generated on Mon Sep 16 2024 11:23:09 for MediaWiki by
1.10.0