MediaWiki
REL1_40
DBQueryTimeoutError.php
Go to the documentation of this file.
1
<?php
20
namespace
Wikimedia\Rdbms
;
21
28
class
DBQueryTimeoutError
extends
DBQueryError
{
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
}
Wikimedia\Rdbms\DBError\$db
IDatabase null $db
Definition
DBError.php:33
Wikimedia\Rdbms\DBQueryError
Definition
DBQueryError.php:27
Wikimedia\Rdbms\DBQueryError\$errno
int $errno
Definition
DBQueryError.php:31
Wikimedia\Rdbms\DBQueryError\$fname
string $fname
Definition
DBQueryError.php:35
Wikimedia\Rdbms\DBQueryError\$sql
string $sql
Definition
DBQueryError.php:33
Wikimedia\Rdbms\DBQueryError\$error
string $error
Definition
DBQueryError.php:29
Wikimedia\Rdbms\DBQueryTimeoutError
Error thrown when a query times out.
Definition
DBQueryTimeoutError.php:28
Wikimedia\Rdbms\DBQueryTimeoutError\__construct
__construct(IDatabase $db, $error, $errno, $sql, $fname)
Definition
DBQueryTimeoutError.php:39
Wikimedia\Rdbms\DBQueryTimeoutError\getKey
getKey()
Returns the message key.
Definition
DBQueryTimeoutError.php:48
Wikimedia\Rdbms\IDatabase
Basic database interface for live and lazy-loaded relation database handles.
Definition
IDatabase.php:36
Wikimedia\Rdbms
Definition
ChronologyProtector.php:20
includes
libs
rdbms
exception
DBQueryTimeoutError.php
Generated on Thu Jun 27 2024 14:03:16 for MediaWiki by
1.10.0