MediaWiki
master
DBExpectedError.php
Go to the documentation of this file.
1
<?php
20
namespace
Wikimedia\Rdbms
;
21
22
use
Wikimedia\Message\MessageSpecifier
;
23
32
class
DBExpectedError
extends
DBError
implements
MessageSpecifier
{
34
protected
$params
;
35
43
public
function
__construct
(
44
?
IDatabase
$db
, $error, array
$params
= [], ?\Throwable $prev =
null
45
) {
46
parent::__construct(
$db
, $error, $prev );
47
$this->params =
$params
;
48
}
49
50
public
function
getKey
() {
51
return
'databaseerror-text'
;
52
}
53
54
public
function
getParams
() {
55
return
$this->params
;
56
}
57
}
Wikimedia\Rdbms\DBError
Database error base class.
Definition
DBError.php:36
Wikimedia\Rdbms\DBError\$db
IDatabase null $db
Definition
DBError.php:38
Wikimedia\Rdbms\DBExpectedError
Base class for the more common types of database errors.
Definition
DBExpectedError.php:32
Wikimedia\Rdbms\DBExpectedError\$params
string[] $params
Message parameters.
Definition
DBExpectedError.php:34
Wikimedia\Rdbms\DBExpectedError\__construct
__construct(?IDatabase $db, $error, array $params=[], ?\Throwable $prev=null)
Definition
DBExpectedError.php:43
Wikimedia\Rdbms\DBExpectedError\getParams
getParams()
Returns the message parameters.
Definition
DBExpectedError.php:54
Wikimedia\Rdbms\DBExpectedError\getKey
getKey()
Returns the message key.
Definition
DBExpectedError.php:50
Wikimedia\Message\MessageSpecifier
Definition
MessageSpecifier.php:26
Wikimedia\Rdbms\IDatabase
Interface to a relational database.
Definition
IDatabase.php:48
Wikimedia\Rdbms
Definition
ChangedTablesTracker.php:3
includes
libs
rdbms
exception
DBExpectedError.php
Generated on Sat Nov 2 2024 20:24:29 for MediaWiki by
1.10.0