ClientException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 2
1
<?php
2
3
namespace DMT\WebservicesNl\Client\Exception;
4
5
/**
6
 * Class ClientException
7
 *
8
 * @package DMT\WebservicesNl\Client
9
 */
10
class ClientException extends \RuntimeException implements ExceptionInterface
11
{
12
    /**
13
     * @static string The default message for this exception
14
     */
15
    const MESSAGE = 'General error, caused by the client.';
16
17
    /**
18
     * ClientException constructor.
19
     *
20
     * @param string $message
21
     * @param int $code
22
     * @param \Throwable|null $previous
23
     */
24 28
    public function __construct(string $message = "", int $code = 0, \Throwable $previous = null)
25
    {
26 28
        parent::__construct(strlen($message) ? $message : static::MESSAGE, $code, $previous);
27 28
    }
28
}
29