Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| AutoloadException | |
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 |
| 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; |
| 16 | |
| 17 | /** |
| 18 | * Autoloader exception |
| 19 | * |
| 20 | * This exception is thrown if a file couldn't be autoloaded |
| 21 | * |
| 22 | * @package phpOMS |
| 23 | * @license OMS License 2.0 |
| 24 | * @link https://jingga.app |
| 25 | * @since 1.0.0 |
| 26 | */ |
| 27 | final class AutoloadException extends \RuntimeException |
| 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('File "' . $message . '" could not get loaded.', $code, $previous); |
| 41 | } |
| 42 | } |