MediaWiki
master
DBConnectionError.php
Go to the documentation of this file.
1
<?php
20
namespace
Wikimedia\Rdbms
;
21
26
class
DBConnectionError
extends
DBExpectedError
{
32
public
function
__construct
( ?
IDatabase
$db
=
null
, $error =
'unknown error'
) {
33
$msg =
'Cannot access the database'
;
34
if
( trim( $error ) !=
''
) {
35
$msg .=
": $error"
;
36
}
37
38
parent::__construct(
$db
, $msg );
39
}
40
}
Wikimedia\Rdbms\DBConnectionError
Definition
DBConnectionError.php:26
Wikimedia\Rdbms\DBConnectionError\__construct
__construct(?IDatabase $db=null, $error='unknown error')
Definition
DBConnectionError.php:32
Wikimedia\Rdbms\DBError\$db
IDatabase null $db
Definition
DBError.php:38
Wikimedia\Rdbms\DBExpectedError
Base class for the more common types of database errors.
Definition
DBExpectedError.php:32
Wikimedia\Rdbms\IDatabase
Interface to a relational database.
Definition
IDatabase.php:48
Wikimedia\Rdbms
Definition
ChangedTablesTracker.php:3
includes
libs
rdbms
exception
DBConnectionError.php
Generated on Sun Dec 8 2024 06:24:32 for MediaWiki by
1.10.0