MediaWiki
REL1_34
DBConnectionError.php
Go to the documentation of this file.
1
<?php
21
namespace
Wikimedia\Rdbms
;
22
26
class
DBConnectionError
extends
DBExpectedError
{
31
public
function
__construct
(
IDatabase
$db
=
null
, $error =
'unknown error'
) {
32
$msg =
'Cannot access the database'
;
33
if
( trim( $error ) !=
''
) {
34
$msg .=
": $error"
;
35
}
36
37
parent::__construct(
$db
, $msg );
38
}
39
}
40
44
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:31
Wikimedia\Rdbms\DBError\$db
IDatabase null $db
Definition
DBError.php:32
Wikimedia\Rdbms\DBExpectedError
Base class for the more common types of database errors.
Definition
DBExpectedError.php:32
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
DBConnectionError.php
Generated on Mon Nov 25 2024 16:05:23 for MediaWiki by
1.10.0