Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
WikiConfigException | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace GrowthExperiments; |
4 | |
5 | use Throwable; |
6 | use Wikimedia\NormalizedException\NormalizedException; |
7 | |
8 | /** |
9 | * Used to signal configuration errors which are within the purview of the wiki community |
10 | * (e.g. a wiki page the extension is configured to interact with does not exist). |
11 | * These errors are important enough that the wiki community should eventually be notified |
12 | * about them, and important for debugging, but they are not relevant for site reliability |
13 | * engineering. |
14 | */ |
15 | class WikiConfigException extends NormalizedException { |
16 | |
17 | /** @inheritDoc */ |
18 | public function __construct( |
19 | string $normalizedMessage, |
20 | array $messageContext = [], |
21 | int $code = 0, |
22 | ?Throwable $previous = null |
23 | ) { |
24 | parent::__construct( $normalizedMessage, $messageContext, $code, $previous ); |
25 | } |
26 | |
27 | } |