MediaWiki
REL1_35
DBError.php
Go to the documentation of this file.
1
<?php
22
namespace
Wikimedia\Rdbms
;
23
24
use RuntimeException;
25
32
class
DBError
extends
RuntimeException {
34
public
$db
;
35
43
public
function
__construct
( ?
IDatabase
$db
, $error, \Throwable $prev =
null
) {
44
parent::__construct( $error, 0, $prev );
45
$this->db =
$db
;
46
}
47
}
48
52
class_alias( DBError::class,
'DBError'
);
Wikimedia\Rdbms\DBError
Database error base class @newable Stable to extend.
Definition
DBError.php:32
Wikimedia\Rdbms\DBError\$db
IDatabase null $db
Definition
DBError.php:34
Wikimedia\Rdbms\DBError\__construct
__construct(?IDatabase $db, $error, \Throwable $prev=null)
Construct a database error Stable to call.
Definition
DBError.php:43
Wikimedia\Rdbms\IDatabase
Basic database interface for live and lazy-loaded relation database handles.
Definition
IDatabase.php:38
Wikimedia\Rdbms
Definition
ChronologyProtector.php:24
includes
libs
rdbms
exception
DBError.php
Generated on Sat Apr 6 2024 00:07:27 for MediaWiki by
1.9.8