Completed
Pull Request — develop (#366)
by Lucas
34:34 queued 04:38
created

NotFoundException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 2
crap 1
1
<?php
2
/**
3
 * Not found exception class
4
 */
5
6
namespace Graviton\ExceptionBundle\Exception;
7
8
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
9
use Symfony\Component\HttpFoundation\Response;
10
11
/**
12
 * Not found exception class
13
 *
14
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
15
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
16
 * @link     http://swisscom.ch
17
 */
18
final class NotFoundException extends NotFoundHttpException implements RestExceptionInterface
19
{
20
    use RestExceptionTrait;
21
22
    /**
23
     * Constructor
24
     *
25
     * @param string     $message Error message
26
     * @param \Exception $prev    Previous Exception
27
     */
28 13
    public function __construct($message = "Not Found", $prev = null)
29
    {
30 13
        parent::__construct($message, $prev);
31 13
    }
32
}
33