MediaWiki REL1_37
DBError.php
Go to the documentation of this file.
1<?php
22namespace Wikimedia\Rdbms;
23
24use RuntimeException;
25
32class 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
52class_alias( DBError::class, 'DBError' );
Database error base class @newable.
Definition DBError.php:32
IDatabase null $db
Definition DBError.php:34
__construct(?IDatabase $db, $error, \Throwable $prev=null)
Construct a database error.
Definition DBError.php:43
Basic database interface for live and lazy-loaded relation database handles.
Definition IDatabase.php:38