Passed
Push — master ( 44459b...dc1fe0 )
by butschster
20:27 queued 10:11
created

ServerErrorException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Spiral\Http\Exception\ClientException;
6
7
use Spiral\Http\Exception\ClientException;
8
9
/**
10
 * HTTP 500 exception.
11
 * @deprecated since v3.12
12
 */
13
class ServerErrorException extends ClientException
14
{
15
    /** @var int */
16
    protected $code = ClientException::ERROR;
17
18
    public function __construct(string $message = '', ?\Throwable $previous = null)
19
    {
20
        parent::__construct($this->code, $message, $previous);
21
    }
22
}
23