MediaWiki  master
Wikimedia\Rdbms\DBConnectionError Class Reference

@newable More...

Inheritance diagram for Wikimedia\Rdbms\DBConnectionError:
Collaboration diagram for Wikimedia\Rdbms\DBConnectionError:

Public Member Functions

 __construct (IDatabase $db=null, $error='unknown error')
 Stable to call. More...
- Public Member Functions inherited from Wikimedia\Rdbms\DBExpectedError
 __construct (?IDatabase $db, $error, array $params=[], \Throwable $prev=null)
 Stable to call. More...
 getKey ()
 Returns the message key. More...
 getParams ()
 Returns the message parameters. More...
- Public Member Functions inherited from Wikimedia\Rdbms\DBError
 __construct (?IDatabase $db, $error, \Throwable $prev=null)
 Construct a database error Stable to call. More...

Additional Inherited Members

- Public Attributes inherited from Wikimedia\Rdbms\DBError
IDatabase null $db
- Protected Attributes inherited from Wikimedia\Rdbms\DBExpectedError
string[] $params
 Message parameters. More...

Detailed Description


Definition at line 27 of file DBConnectionError.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Rdbms\DBConnectionError::__construct ( IDatabase  $db = null,
  $error = 'unknown error' 

Stable to call.

IDatabase | null$dbObject throwing the error
string$errorError text

Definition at line 33 of file DBConnectionError.php.

References Wikimedia\Rdbms\DBError\$db.

The documentation for this class was generated from the following file: