Completed
Push — master ( 6be770...a840d8 )
by Daniel
02:09
created

SocketClientException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 15
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

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