ConfigException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of Cecil.
5
 *
6
 * (c) Arnaud Ligny <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Cecil\Exception;
15
16
/**
17
 * ConfigException class.
18
 *
19
 * This class extends the built-in RuntimeException and implements the ExceptionInterface.
20
 * It is used to handle configuration-related exceptions in the Cecil application.
21
 */
22
class ConfigException extends \RuntimeException implements ExceptionInterface
23
{
24
    public function __construct(string $message, int $code = 0, ?\Throwable $previous = null)
25
    {
26
        parent::__construct("Configuration: $message", $code, $previous);
27
    }
28
}
29