Completed
Branch dev-2.0.0 (e891eb)
by Daniel
05:19
created

UnknownWhoisException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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