MediaWiki
REL1_37
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.
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.
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 Fri Apr 5 2024 23:40:31 for MediaWiki by
1.9.8