MediaWiki REL1_33
DBExpectedError.php
Go to the documentation of this file.
1<?php
21namespace Wikimedia\Rdbms;
22
24
32class DBExpectedError extends DBError implements MessageSpecifier {
34 protected $params;
35
42 public function __construct(
43 IDatabase $db = null, $error, array $params = [], $prev = null
44 ) {
45 parent::__construct( $db, $error, $prev );
46 $this->params = $params;
47 }
48
49 public function getKey() {
50 return 'databaseerror-text';
51 }
52
53 public function getParams() {
54 return $this->params;
55 }
56}
57
61class_alias( DBExpectedError::class, 'DBExpectedError' );
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
Database error base class.
Definition DBError.php:30
IDatabase null $db
Definition DBError.php:32
Base class for the more common types of database errors.
string[] $params
Message parameters.
getParams()
Returns the message parameters.
__construct(IDatabase $db=null, $error, array $params=[], $prev=null)
getKey()
Returns the message key.
Basic database interface for live and lazy-loaded relation database handles.
Definition IDatabase.php:38
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))