MediaWiki
REL1_39
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
}
41
45
class_alias( DBConnectionError::class,
'DBConnectionError'
);
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:33
Wikimedia\Rdbms\DBExpectedError
Base class for the more common types of database errors.
Definition
DBExpectedError.php:33
Wikimedia\Rdbms\IDatabase
Basic database interface for live and lazy-loaded relation database handles.
Definition
IDatabase.php:39
Wikimedia\Rdbms
Definition
ChronologyProtector.php:20
includes
libs
rdbms
exception
DBConnectionError.php
Generated on Thu Nov 21 2024 05:23:22 for MediaWiki by
1.10.0