Total Complexity | 5 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 20% |
Changes | 0 |
1 | <?php |
||
16 | class PageNotFoundException extends OutOfBoundsException implements ExceptionInterface |
||
17 | { |
||
18 | use DebugTraceableTrait; |
||
19 | |||
20 | /** |
||
21 | * Code d'erreur |
||
22 | * |
||
23 | * @var int |
||
24 | */ |
||
25 | protected $code = 404; |
||
26 | |||
27 | public static function pageNotFound(?string $message = null) |
||
28 | { |
||
29 | return new static($message ?? self::lang('HTTP.pageNotFound')); |
||
30 | } |
||
31 | |||
32 | public static function emptyController() |
||
35 | } |
||
36 | |||
37 | public static function controllerNotFound(string $controller, string $method) |
||
38 | { |
||
39 | return new static(self::lang('HTTP.controllerNotFound', [$controller, $method])); |
||
40 | } |
||
41 | |||
42 | public static function methodNotFound(string $method) |
||
45 | } |
||
46 | |||
47 | public static function localeNotSupported(string $locale) |
||
52 |