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