Passed
Push — master ( 72a17c...7e1b76 )
by Alexander
04:45
created

RouteNotFoundException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 7
ccs 0
cts 7
cp 0
rs 10
cc 1
nc 1
nop 3
crap 2
1
<?php
2
3
namespace Yiisoft\Router;
4
5
use Throwable;
6
7
class RouteNotFoundException extends \RuntimeException
8
{
9
    public function __construct($routeName = '', $code = 0, Throwable $previous = null)
10
    {
11
        $message = sprintf(
12
            'Cannot generate URI for route "%s"; route not found',
13
            $routeName
14
        );
15
        parent::__construct($message, $code, $previous);
16
    }
17
}
18