DataTableException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 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