Passed
Push — master ( 492d62...97293d )
by Jeroen
58:03
created

PageNotFoundException   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0
wmc 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 3
1
<?php
2
3
namespace Elgg;
4
5
use Throwable;
6
7
/**
8
 * Thrown when page is not accessible
9
 */
10
class PageNotFoundException extends HttpException {
11
12
	/**
13
	 * {@inheritdoc}
14
	 */
15
	public function __construct(string $message = "", int $code = 0, Throwable $previous = null) {
16
		if (!$message) {
17
			$message = elgg_echo('PageNotFoundException');
18
		}
19
		if (!$code) {
20
			$code = ELGG_HTTP_NOT_FOUND;
21
		}
22
		parent::__construct($message, $code, $previous);
23
	}
24
}
25