ServerInternalErrorException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 3
1
<?php
2
/*
3
 * This file is part of the FreshCommonApiBundle
4
 *
5
 * (c) Artem Henvald <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
declare(strict_types=1);
12
13
namespace Fresh\CommonApiBundle\Exception;
14
15
use Symfony\Component\HttpFoundation\Response;
16
use Symfony\Component\HttpKernel\Exception\HttpException;
17
18
/**
19
 * ServerInternalErrorException.
20
 *
21
 * @author Artem Henvald <[email protected]>
22
 */
23
class ServerInternalErrorException extends HttpException
24
{
25
    /**
26
     * @param string          $message
27
     * @param \Exception|null $previous
28
     * @param int             $code
29
     */
30
    public function __construct(string $message = null, ?\Exception $previous = null, int $code = 0)
31
    {
32
        parent::__construct(Response::HTTP_INTERNAL_SERVER_ERROR, $message, $previous, [], $code);
33
    }
34
}
35