Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
InvalidEnumName | |
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\Stdlib\Base\Exception |
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\Stdlib\Base\Exception; |
16 | |
17 | /** |
18 | * Filesystem class. |
19 | * |
20 | * Performing operations on the file system |
21 | * |
22 | * @package phpOMS\Stdlib\Base\Exception |
23 | * @license OMS License 2.0 |
24 | * @link https://jingga.app |
25 | * @since 1.0.0 |
26 | */ |
27 | class InvalidEnumName extends \UnexpectedValueException |
28 | { |
29 | /** |
30 | * Constructor. |
31 | * |
32 | * @param string $message Exception message |
33 | * @param int $code Exception code |
34 | * @param \Exception $previous Previous exception |
35 | * |
36 | * @since 1.0.0 |
37 | */ |
38 | public function __construct(string $message, int $code = 0, \Exception $previous = null) |
39 | { |
40 | parent::__construct('The enum name "' . $message . '" is not valid.', $code, $previous); |
41 | } |
42 | } |