Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| StrictModeException | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\HtmlToPdf; |
| 6 | |
| 7 | /** |
| 8 | * Thrown when {@see RendererOptions::$strict} is true and the renderer |
| 9 | * encounters a condition that would otherwise emit a {@see Warning} of |
| 10 | * `Error` severity. The originating warning is available on the |
| 11 | * exception via `getWarning()`. |
| 12 | */ |
| 13 | final class StrictModeException extends \RuntimeException |
| 14 | { |
| 15 | public function __construct(public readonly Warning $warning) |
| 16 | { |
| 17 | parent::__construct($warning->message); |
| 18 | } |
| 19 | } |