MediaWiki master
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:38
Error thrown when a query times out.
__construct(IDatabase $db, $error, $errno, $sql, $fname)
Interface to a relational database.
Definition IDatabase.php:48