Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
3 / 3 |
| FileNotExistException | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
| __construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace Qmp\Laravel\FileGenerator\Services\FileGenerator\Exceptions; |
| 4 | |
| 5 | use Exception; |
| 6 | use Throwable; |
| 7 | |
| 8 | class FileNotExistException extends Exception |
| 9 | { |
| 10 | /** |
| 11 | * @param $path |
| 12 | * @param int $code |
| 13 | * @param \Throwable|null $previous |
| 14 | */ |
| 15 | public function __construct($path, $code = 0, Throwable $previous = null) |
| 16 | { |
| 17 | $message = "$path not found !"; |
| 18 | parent::__construct($message, $code, $previous); |
| 19 | } |
| 20 | } |