MediaWiki
1.34.0
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\DBError\$db
IDatabase null $db
Definition:
DBError.php:32
Wikimedia\Rdbms
Definition:
ChronologyProtector.php:24
Wikimedia\Rdbms\DBConnectionError\__construct
__construct(IDatabase $db=null, $error='unknown error')
Definition:
DBConnectionError.php:31
Wikimedia\Rdbms\IDatabase
Basic database interface for live and lazy-loaded relation database handles.
Definition:
IDatabase.php:38
Wikimedia\Rdbms\DBExpectedError
Base class for the more common types of database errors.
Definition:
DBExpectedError.php:32
Wikimedia\Rdbms\DBConnectionError
Definition:
DBConnectionError.php:26
includes
libs
rdbms
exception
DBConnectionError.php
Generated on Thu Dec 19 2019 14:54:32 for MediaWiki by
1.8.16