Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
InvalidUriException | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | /** |
3 | * Jingga |
4 | * |
5 | * PHP Version 8.1 |
6 | * |
7 | * @package phpOMS\Uri |
8 | * @copyright Dennis Eichhorn |
9 | * @license OMS License 2.0 |
10 | * @version 1.0.0 |
11 | * @link https://jingga.app |
12 | */ |
13 | declare(strict_types=1); |
14 | |
15 | namespace phpOMS\Uri; |
16 | |
17 | /** |
18 | * Uri exception. |
19 | * |
20 | * @package phpOMS\Uri |
21 | * @license OMS License 2.0 |
22 | * @link https://jingga.app |
23 | * @since 1.0.0 |
24 | */ |
25 | class InvalidUriException extends \UnexpectedValueException |
26 | { |
27 | /** |
28 | * Constructor. |
29 | * |
30 | * @param string $message Exception message |
31 | * @param int $code Exception code |
32 | * @param \Exception $previous Previous exception |
33 | * |
34 | * @since 1.0.0 |
35 | */ |
36 | public function __construct(string $message, int $code = 0, \Exception $previous = null) |
37 | { |
38 | parent::__construct('The uri "' . $message . '" is not valid.', $code, $previous); |
39 | } |
40 | } |