MediaWiki REL1_39
DBQueryTimeoutError.php
Go to the documentation of this file.
1<?php
20namespace Wikimedia\Rdbms;
21
29
39 public function __construct( IDatabase $db, $error, $errno, $sql, $fname ) {
40 $message = "A database query timeout has occurred. \n" .
41 "Query: $sql\n" .
42 "Function: $fname\n" .
43 "Error: $errno $error\n";
44
45 parent::__construct( $db, $error, $errno, $sql, $fname, $message );
46 }
47
48 public function getKey() {
49 return 'transaction-max-statement-time-exceeded';
50 }
51
52}
IDatabase null $db
Definition DBError.php:33
Error thrown when a query times out.
__construct(IDatabase $db, $error, $errno, $sql, $fname)
Basic database interface for live and lazy-loaded relation database handles.
Definition IDatabase.php:39