UnknownWhoisException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace MallardDuck\Whois\Exceptions;
4
5
use Exception;
6
7
/**
8
 * A basic exception for Missing Arguments.
9
 *
10
 * @author mallardduck <[email protected]>
11
 *
12
 * @copyright lucidinternets.com 2018
13
 *
14
 * @version 1.0.0
15
 */
16
class UnknownWhoisException extends Exception
17
{
18
    /** @var int    An integer code for the exception. */
19
    public const CODE = 0;
20
21
    /**
22
     * Basic Exception Constructor
23
     *
24
     * @param string         $message  The Exceptions message: this type requires it be related to a missing item.
25
     * @param int            $code     The user defined exception code.
26
     * @param null|Exception $previous If present, the previous exception if nested exception.
27
     */
28 20
    public function __construct($message, $code = self::CODE, Exception $previous = null)
29
    {
30 20
        parent::__construct($message, $code, $previous);
31 20
    }
32
}
33