MediaWiki REL1_33
DBError.php
Go to the documentation of this file.
1<?php
22namespace Wikimedia\Rdbms;
23
24use RuntimeException;
25
30class DBError extends RuntimeException {
32 public $db;
33
40 public function __construct( IDatabase $db = null, $error, $prev = null ) {
41 parent::__construct( $error, 0, $prev );
42 $this->db = $db;
43 }
44}
45
49class_alias( DBError::class, 'DBError' );
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
Database error base class.
Definition DBError.php:30
IDatabase null $db
Definition DBError.php:32
__construct(IDatabase $db=null, $error, $prev=null)
Construct a database error.
Definition DBError.php:40
Basic database interface for live and lazy-loaded relation database handles.
Definition IDatabase.php:38