DataTableException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 3
crap 1
1
<?php
2
3
//----------------------------------------------------------------------
4
//
5
//  Copyright (C) 2015-2022 Artem Rodygin
6
//
7
//  This file is part of DataTables Symfony bundle.
8
//
9
//  You should have received a copy of the MIT License along with
10
//  the bundle. If not, see <http://opensource.org/licenses/MIT>.
11
//
12
//----------------------------------------------------------------------
13
14
namespace DataTables;
15
16
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
17
18
/**
19
 * Exception from a DataTable request handling.
20
 * Contains HTTP status code and can be used in HTTP Response object.
21
 */
22
class DataTableException extends BadRequestHttpException
23
{
24
    /**
25
     * {@inheritdoc}
26
     */
27 1
    public function __construct(string $message, int $code = 0, \Throwable $previous = null)
28
    {
29 1
        parent::__construct($message, $previous, $code);
30 1
    }
31
}
32