Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| FetchFailedException | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\ResourceLoader\Exception; |
| 6 | |
| 7 | /** |
| 8 | * Thrown when a fetch fails for a reason other than SSRF policy — |
| 9 | * timeout, network error, non-2xx HTTP response, content-length cap |
| 10 | * exceeded, redirect chain too long, etc. |
| 11 | * |
| 12 | * Phase 4F.1 — the HTTP fetcher distinguishes the failure modes via |
| 13 | * exception subclasses; this is the umbrella type. |
| 14 | */ |
| 15 | class FetchFailedException extends \RuntimeException {} |