Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | final class ParsingFailed extends Exception |
||
10 | { |
||
11 | private const CODE = 1004; |
||
12 | |||
13 | /** |
||
14 | * @var null|string |
||
15 | */ |
||
16 | private ?string $failedFile; |
||
17 | |||
18 | /** |
||
19 | * @param ExceptionContract $previous |
||
20 | */ |
||
21 | public static function forFile(string $file, ExceptionContract $previous = null): ExceptionContract |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Get the file which parsing failed for. |
||
32 | */ |
||
33 | public function getFailedFile(): ?string |
||
38 |