MediaWiki REL1_41
DBError.php
Go to the documentation of this file.
1<?php
20namespace Wikimedia\Rdbms;
21
22use RuntimeException;
23
37class 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
57class_alias( DBError::class, 'DBError' );
Database error base class.
Definition DBError.php:37
IDatabase null $db
Definition DBError.php:39
__construct(?IDatabase $db, $error, \Throwable $prev=null)
Construct a database error.
Definition DBError.php:48
Basic database interface for live and lazy-loaded relation database handles.
Definition IDatabase.php:36