MediaWiki
REL1_35
DBQueryDisconnectedError.php
Go to the documentation of this file.
1
<?php
22
namespace
Wikimedia\Rdbms
;
23
29
class
DBQueryDisconnectedError
extends
DBQueryError
{
30
40
public
function
__construct
(
IDatabase
$db
,
$error
,
$errno
,
$sql
,
$fname
, $message =
null
) {
41
if
( $message ===
null
) {
42
$message =
"A connection error occurred during a query. \n"
.
43
"Query: $sql\n"
.
44
"Function: $fname\n"
.
45
"Error: $errno $error\n"
;
46
}
47
48
parent::__construct(
$db
,
$error
,
$errno
,
$sql
,
$fname
, $message );
49
}
50
}
Wikimedia\Rdbms\DBError\$db
IDatabase null $db
Definition
DBError.php:34
Wikimedia\Rdbms\DBQueryDisconnectedError
@newable
Definition
DBQueryDisconnectedError.php:29
Wikimedia\Rdbms\DBQueryDisconnectedError\__construct
__construct(IDatabase $db, $error, $errno, $sql, $fname, $message=null)
Stable to call.
Definition
DBQueryDisconnectedError.php:40
Wikimedia\Rdbms\DBQueryError
@newable Stable to extend
Definition
DBQueryError.php:29
Wikimedia\Rdbms\DBQueryError\$errno
int $errno
Definition
DBQueryError.php:33
Wikimedia\Rdbms\DBQueryError\$fname
string $fname
Definition
DBQueryError.php:37
Wikimedia\Rdbms\DBQueryError\$sql
string $sql
Definition
DBQueryError.php:35
Wikimedia\Rdbms\DBQueryError\$error
string $error
Definition
DBQueryError.php:31
Wikimedia\Rdbms\IDatabase
Basic database interface for live and lazy-loaded relation database handles.
Definition
IDatabase.php:38
Wikimedia\Rdbms
Definition
ChronologyProtector.php:24
includes
libs
rdbms
exception
DBQueryDisconnectedError.php
Generated on Sat Apr 6 2024 00:07:27 for MediaWiki by
1.9.8