blob: 3e453c1c168917b12879c0594b1ab9798d308348 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<?php
declare( strict_types = 1 );
namespace MediaWiki\Extension\Translate\MessageBundleTranslation;
use Exception;
use MessageSpecifier;
use Throwable;
/**
* @author Niklas Laxström
* @license GPL-2.0-or-later
* @since 2021.05
*/
class MalformedBundle extends Exception implements MessageSpecifier {
/** @var string */
private $key;
/** @var array */
private $params;
public function __construct(
string $key,
array $params = [],
?Throwable $previous = null
) {
parent::__construct( $key, 0, $previous );
$this->key = $key;
$this->params = $params;
}
/** @inheritDoc */
public function getKey() {
return $this->key;
}
/** @inheritDoc */
public function getParams() {
return $this->params;
}
}
|