Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
IncompleteRecordException | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\MediaUploader\Campaign\Exception; |
4 | |
5 | /** |
6 | * Thrown when the campaign's record is missing some elements. |
7 | */ |
8 | class IncompleteRecordException extends BaseCampaignException { |
9 | |
10 | /** |
11 | * IncompleteRecordException constructor. |
12 | * |
13 | * @param string $campaignName |
14 | * @param string $missing What is missing from the record. |
15 | */ |
16 | public function __construct( string $campaignName, string $missing ) { |
17 | $message = $this->msg( |
18 | 'mediauploader-incomplete-campaign-record', |
19 | 'The record for campaign "$1" is missing the following ' . |
20 | 'elements: $2', |
21 | $campaignName, |
22 | $missing |
23 | ); |
24 | |
25 | parent::__construct( $campaignName, $message ); |
26 | } |
27 | } |