JsonRpcInternalErrorException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 19
ccs 6
cts 6
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
namespace Yoanm\JsonRpcServer\Domain\Exception;
3
4
/**
5
 * JsonRpcInternalErrorException represents unhandled error during JsonRpc method processing
6
 * (e.g. "Internal server error").
7
 */
8
class JsonRpcInternalErrorException extends JsonRpcException
9
{
10
    const CODE = -32603;
11
12
    /**
13
     * @deprecated no longer in use, will be removed at next major release.
14
     */
15
    const DATA_PREVIOUS_KEY = 'previous';
16
17
    /**
18
     * @param \Throwable|null $previousException
19
     */
20 8
    public function __construct(\Throwable $previousException = null)
21
    {
22 8
        parent::__construct(
23 8
            self::CODE,
24 8
            'Internal error',
25 8
            [],
26 8
            $previousException
27 8
        );
28
    }
29
}
30