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

RouteNotFoundException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 9
ccs 0
cts 7
cp 0
rs 10

1 Method

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