MediaWiki  master
DBQueryTimeoutError.php
Go to the documentation of this file.
1 <?php
22 namespace Wikimedia\Rdbms;
23 
30  public function __construct( IDatabase $db, $error, $errno, $sql, $fname ) {
31  $message = "A database query timeout has occurred. \n" .
32  "Query: $sql\n" .
33  "Function: $fname\n" .
34  "Error: $errno $error\n";
35 
36  parent::__construct( $db, $error, $errno, $sql, $fname, $message );
37  }
38 }
Wikimedia\Rdbms\DBError\$db
IDatabase null $db
Definition: DBError.php:32
Wikimedia\Rdbms\DBQueryError\$errno
int $errno
Definition: DBQueryError.php:31
Wikimedia\Rdbms
Definition: ChronologyProtector.php:24
Wikimedia\Rdbms\DBQueryError\$fname
string $fname
Definition: DBQueryError.php:35
Wikimedia\Rdbms\IDatabase
Basic database interface for live and lazy-loaded relation database handles.
Definition: IDatabase.php:38
Wikimedia\Rdbms\DBQueryTimeoutError
Error thrown when a query times out.
Definition: DBQueryTimeoutError.php:29
Wikimedia\Rdbms\DBQueryError
Definition: DBQueryError.php:27
Wikimedia\Rdbms\DBQueryTimeoutError\__construct
__construct(IDatabase $db, $error, $errno, $sql, $fname)
Definition: DBQueryTimeoutError.php:30
Wikimedia\Rdbms\DBQueryError\$sql
string $sql
Definition: DBQueryError.php:33
Wikimedia\Rdbms\DBQueryError\$error
string $error
Definition: DBQueryError.php:29