Completed
Pull Request — 2.1 (#12704)
by Robert
08:59
created

NotFoundHttpException::__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

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 3
crap 1
1
<?php
2
/**
3
 * @link http://www.yiiframework.com/
4
 * @copyright Copyright (c) 2008 Yii Software LLC
5
 * @license http://www.yiiframework.com/license/
6
 */
7
8
namespace yii\web;
9
10
/**
11
 * NotFoundHttpException represents a "Not Found" HTTP exception with status code 404.
12
 *
13
 * @author Qiang Xue <[email protected]>
14
 * @since 2.0
15
 */
16
class NotFoundHttpException extends HttpException
17
{
18
    /**
19
     * Constructor.
20
     * @param string $message error message
21
     * @param integer $code error code
22
     * @param \Exception $previous The previous exception used for the exception chaining.
23
     */
24 2
    public function __construct($message = null, $code = 0, \Exception $previous = null)
25
    {
26 2
        parent::__construct(404, $message, $code, $previous);
27 2
    }
28
}
29