Passed
Push — 5.0 ( c16c04...6887da )
by Marc André
02:29
created

ConfigurationNotFoundException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * This file is part of the Cervo package.
5
 *
6
 * Copyright (c) 2010-2019 Nevraxe inc. & Marc André Audet <[email protected]>.
7
 *
8
 * @package   Cervo
9
 * @author    Marc André Audet <[email protected]>
10
 * @copyright 2010 - 2019 Nevraxe inc. & Marc André Audet
11
 * @license   See LICENSE.md  MIT
12
 * @link      https://github.com/Nevraxe/Cervo
13
 * @since     5.0.0
14
 */
15
16
declare(strict_types=1);
17
18
namespace Cervo\Exceptions;
19
20
use Throwable;
21
22
23
class ConfigurationNotFoundException extends \RuntimeException
24
{
25
    public function __construct($configuration_name, $code = 0, Throwable $previous = null)
26
    {
27
        parent::__construct('Failed to fetch a required configuration: ' . $configuration_name, $code, $previous);
28
    }
29
}
30