MediaWiki 1.42.0
DBQueryDisconnectedError.php
Go to the documentation of this file.
1<?php
20namespace Wikimedia\Rdbms;
21
28
38 public function __construct( IDatabase $db, $error, $errno, $sql, $fname, $message = null ) {
39 if ( $message === null ) {
40 $message = "A connection error occurred during a query. \n" .
41 "Query: $sql\n" .
42 "Function: $fname\n" .
43 "Error: $errno $error\n";
44 }
45
46 parent::__construct( $db, $error, $errno, $sql, $fname, $message );
47 }
48}
IDatabase null $db
Definition DBError.php:38
__construct(IDatabase $db, $error, $errno, $sql, $fname, $message=null)
Basic database interface for live and lazy-loaded relation database handles.
Definition IDatabase.php:36