MediaWiki  master
DBQueryDisconnectedError.php
Go to the documentation of this file.
1 <?php
22 namespace Wikimedia\Rdbms;
23 
30 
40  public function __construct( IDatabase $db, $error, $errno, $sql, $fname, $message = null ) {
41  if ( $message === null ) {
42  $message = "A connection error occurred during a query. \n" .
43  "Query: $sql\n" .
44  "Function: $fname\n" .
45  "Error: $errno $error\n";
46  }
47 
48  parent::__construct( $db, $error, $errno, $sql, $fname, $message );
49  }
50 }
Wikimedia\Rdbms\DBError\$db
IDatabase null $db
Definition: DBError.php:34
Wikimedia\Rdbms\DBQueryError\$errno
int $errno
Definition: DBQueryError.php:33
Wikimedia\Rdbms
Definition: ChronologyProtector.php:24
Wikimedia\Rdbms\DBQueryError\$fname
string $fname
Definition: DBQueryError.php:37
Wikimedia\Rdbms\IDatabase
Basic database interface for live and lazy-loaded relation database handles.
Definition: IDatabase.php:38
Wikimedia\Rdbms\DBQueryError
Definition: DBQueryError.php:29
Wikimedia\Rdbms\DBQueryError\$sql
string $sql
Definition: DBQueryError.php:35
Wikimedia\Rdbms\DBQueryDisconnectedError
@newable
Definition: DBQueryDisconnectedError.php:29
Wikimedia\Rdbms\DBQueryDisconnectedError\__construct
__construct(IDatabase $db, $error, $errno, $sql, $fname, $message=null)
Stable to call.
Definition: DBQueryDisconnectedError.php:40
Wikimedia\Rdbms\DBQueryError\$error
string $error
Definition: DBQueryError.php:31