Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
PageNotFoundException | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
6 |
1 | <?php |
2 | |
3 | declare( strict_types=1 ); |
4 | |
5 | namespace MediaWiki\Extension\CampaignEvents\MWEntity; |
6 | |
7 | use MediaWiki\DAO\WikiAwareEntity; |
8 | use RuntimeException; |
9 | |
10 | class PageNotFoundException extends RuntimeException { |
11 | /** |
12 | * @param int $namespace |
13 | * @param string $title |
14 | * @param string|false $wikiID |
15 | */ |
16 | public function __construct( int $namespace, string $title, $wikiID ) { |
17 | $wikiDesc = $wikiID === WikiAwareEntity::LOCAL ? 'the local wiki' : $wikiID; |
18 | parent::__construct( "Page ($namespace,$title) not found on $wikiDesc" ); |
19 | } |
20 | } |