MediaWiki 1.42.0
Wikimedia\Rdbms\DBQueryTimeoutError Class Reference

Error thrown when a query times out. More...

Inherits Wikimedia\Rdbms\DBQueryError.

Collaboration diagram for Wikimedia\Rdbms\DBQueryTimeoutError:

Public Member Functions

 __construct (IDatabase $db, $error, $errno, $sql, $fname)
 
 getKey ()
 Returns the message key.
 
- Public Member Functions inherited from Wikimedia\Rdbms\DBQueryError
 __construct (IDatabase $db, $error, $errno, $sql, $fname, $message=null)
 
- Public Member Functions inherited from Wikimedia\Rdbms\DBExpectedError
 __construct (?IDatabase $db, $error, array $params=[], \Throwable $prev=null)
 
 getParams ()
 Returns the message parameters.
 
- Public Member Functions inherited from Wikimedia\Rdbms\DBError
 __construct (?IDatabase $db, $error, \Throwable $prev=null)
 Construct a database error.
 

Additional Inherited Members

- Public Attributes inherited from Wikimedia\Rdbms\DBQueryError
int $errno
 
string $error
 
string $fname
 
string $sql
 
- Public Attributes inherited from Wikimedia\Rdbms\DBError
IDatabase null $db
 
- Protected Attributes inherited from Wikimedia\Rdbms\DBExpectedError
string[] $params
 Message parameters.
 

Detailed Description

Error thrown when a query times out.

Stability: newable

Definition at line 28 of file DBQueryTimeoutError.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Rdbms\DBQueryTimeoutError::__construct ( IDatabase $db,
$error,
$errno,
$sql,
$fname )
Stability: stable
to call
Parameters
IDatabase$db
string$error
int | string$errno
string$sql
string$fname

Definition at line 39 of file DBQueryTimeoutError.php.

References Wikimedia\Rdbms\DBError\$db, Wikimedia\Rdbms\DBQueryError\$errno, Wikimedia\Rdbms\DBQueryError\$error, Wikimedia\Rdbms\DBQueryError\$fname, and Wikimedia\Rdbms\DBQueryError\$sql.

Member Function Documentation

◆ getKey()

Wikimedia\Rdbms\DBQueryTimeoutError::getKey ( )

Returns the message key.

If a list of multiple possible keys was supplied to the constructor, this method may return any of these keys. After the message has been fetched, this method will return the key that was actually used to fetch the message.

Returns
string

Reimplemented from Wikimedia\Rdbms\DBExpectedError.

Definition at line 48 of file DBQueryTimeoutError.php.


The documentation for this class was generated from the following file: