Completed
Push — master ( 060eb7...39f1ca )
by Artem
05:16
created

ServerInternalErrorException::__construct()   A

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 Genvald <[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
namespace Fresh\CommonApiBundle\Exception;
12
13
use Symfony\Component\HttpFoundation\Response;
14
use Symfony\Component\HttpKernel\Exception\HttpException;
15
16
/**
17
 * ServerInternalErrorException.
18
 *
19
 * @author Artem Genvald <[email protected]>
20
 */
21
class ServerInternalErrorException extends HttpException
22
{
23
    /**
24
     * Constructor.
25
     *
26
     * @param string     $message  The internal exception message
27
     * @param \Exception $previous The previous exception
28
     * @param int        $code     The internal exception code
29
     */
30
    public function __construct($message = null, \Exception $previous = null, $code = 0)
31
    {
32
        parent::__construct(Response::HTTP_INTERNAL_SERVER_ERROR, $message, $previous, [], $code);
33
    }
34
}
35