Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
BannerLoaderException | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
6 |
1 | <?php |
2 | |
3 | /** |
4 | * These exceptions are thrown whenever an error occurs, which is fatal to |
5 | * rendering the banner, but can be fairly expected. |
6 | * |
7 | * @ingroup Exception |
8 | */ |
9 | class BannerLoaderException extends Exception { |
10 | public function __construct( $bannerName = '(none provided)', $extraMsg = null ) { |
11 | $this->message = static::class . |
12 | " while loading banner: '{$bannerName}'"; |
13 | if ( $extraMsg ) { |
14 | $this->message .= ". {$extraMsg}"; |
15 | } |
16 | } |
17 | } |