dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Move section ID fallbacks into headers themselves"
[lhc/web/wiklou.git]
/
includes
/
libs
/
rdbms
/
exception
/
DBConnectionError.php
diff --git
a/includes/libs/rdbms/exception/DBConnectionError.php
b/includes/libs/rdbms/exception/DBConnectionError.php
index
47f8c96
..
91d98dc
100644
(file)
--- a/
includes/libs/rdbms/exception/DBConnectionError.php
+++ b/
includes/libs/rdbms/exception/DBConnectionError.php
@@
-18,6
+18,7
@@
* @file
* @ingroup Database
*/
* @file
* @ingroup Database
*/
+namespace Wikimedia\Rdbms;
/**
* @ingroup Database
/**
* @ingroup Database
@@
-27,7
+28,7
@@
class DBConnectionError extends DBExpectedError {
* @param IDatabase $db Object throwing the error
* @param string $error Error text
*/
* @param IDatabase $db Object throwing the error
* @param string $error Error text
*/
- function __construct( IDatabase $db = null, $error = 'unknown error' ) {
+
public
function __construct( IDatabase $db = null, $error = 'unknown error' ) {
$msg = 'Cannot access the database';
if ( trim( $error ) != '' ) {
$msg .= ": $error";
$msg = 'Cannot access the database';
if ( trim( $error ) != '' ) {
$msg .= ": $error";
@@
-36,3
+37,5
@@
class DBConnectionError extends DBExpectedError {
parent::__construct( $db, $msg );
}
}
parent::__construct( $db, $msg );
}
}
+
+class_alias( DBConnectionError::class, 'DBConnectionError' );