MediaWiki
REL1_41
DBError.php
Go to the documentation of this file.
1
<?php
20
namespace
Wikimedia\Rdbms
;
21
22
use RuntimeException;
23
37
class
DBError
extends
RuntimeException {
39
public
$db
;
40
48
public
function
__construct
( ?
IDatabase
$db
, $error, \Throwable $prev =
null
) {
49
parent::__construct( $error, 0, $prev );
50
$this->db =
$db
;
51
}
52
}
53
57
class_alias( DBError::class,
'DBError'
);
Wikimedia\Rdbms\DBError
Database error base class.
Definition
DBError.php:37
Wikimedia\Rdbms\DBError\$db
IDatabase null $db
Definition
DBError.php:39
Wikimedia\Rdbms\DBError\__construct
__construct(?IDatabase $db, $error, \Throwable $prev=null)
Construct a database error.
Definition
DBError.php:48
Wikimedia\Rdbms\IDatabase
Basic database interface for live and lazy-loaded relation database handles.
Definition
IDatabase.php:36
Wikimedia\Rdbms
Definition
ChronologyProtector.php:20
includes
libs
rdbms
exception
DBError.php
Generated on Sat Nov 23 2024 08:23:53 for MediaWiki by
1.10.0