Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
UnsupportedPageTypeException | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
6 |
1 | <?php |
2 | |
3 | namespace Hyde\Framework\Exceptions; |
4 | |
5 | use Exception; |
6 | |
7 | class UnsupportedPageTypeException extends Exception |
8 | { |
9 | protected $message = 'The page type is not supported.'; |
10 | protected $code = 400; |
11 | |
12 | public function __construct(?string $page = null) |
13 | { |
14 | $this->message = $page ? "The page type is not supported: {$page}" : $this->message; |
15 | } |
16 | } |