Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
StatusException | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\SecurePoll\Pages; |
4 | |
5 | use Exception; |
6 | use MediaWiki\Status\Status; |
7 | |
8 | class StatusException extends Exception { |
9 | /** @var Status */ |
10 | public $status; |
11 | |
12 | public function __construct( $message, ...$parameters ) { |
13 | $this->status = Status::newFatal( $message, ...$parameters ); |
14 | } |
15 | } |