MediaWiki
1.28.0
|
Base class for the more common types of database errors. More...
Public Member Functions | |
__construct (IDatabase $db=null, $error, array $params=[]) | |
getKey () | |
Returns the message key. More... | |
getParams () | |
Returns the message parameters. More... | |
Public Member Functions inherited from DBError | |
__construct (IDatabase $db=null, $error) | |
Construct a database error. More... | |
Protected Attributes | |
string[] | $params |
Message parameters. More... | |
Additional Inherited Members | |
Public Attributes inherited from DBError | |
IDatabase null | $db |
Base class for the more common types of database errors.
These are known to occur frequently, so we try to give friendly error messages for them.
Definition at line 29 of file DBExpectedError.php.
Definition at line 33 of file DBExpectedError.php.
References DBError\$db, and $params.
DBExpectedError::getKey | ( | ) |
Returns the message key.
If a list of multiple possible keys was supplied to the constructor, this method may return any of these keys. After the message has been fetched, this method will return the key that was actually used to fetch the message.
Implements MessageSpecifier.
Definition at line 38 of file DBExpectedError.php.
DBExpectedError::getParams | ( | ) |
Returns the message parameters.
Implements MessageSpecifier.
Definition at line 42 of file DBExpectedError.php.
References $params.
|
protected |
Message parameters.
Definition at line 31 of file DBExpectedError.php.
Referenced by __construct(), and getParams().