ModuleException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 3
1
<?php
2
/**
3
 * For the full copyright and license information, please view the LICENSE.md
4
 * file that was distributed with this source code.
5
 */
6
7
namespace Notamedia\ConsoleJedi\Module\Exception;
8
9
class ModuleException extends \RuntimeException
10
{
11
    /**
12
     * ModuleException constructor.
13
     *
14
     * @param string $message
15
     * @param int $moduleName
16
     * @param \Exception|null $previous
17
     */
18
    public function __construct($message, $moduleName, \Exception $previous = null)
19
    {
20
        parent::__construct("[$moduleName] " . $message, 0, $previous);
21
    }
22
}