Exception_Staleelement::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 0
cts 9
cp 0
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Openbuildings\Spiderling;
4
5
/**
6
 * @package    Openbuildings\Spiderling
7
 * @author     Ivan Kerin
8
 * @copyright  (c) 2013 OpenBuildings Ltd.
9
 * @license    http://spdx.org/licenses/BSD-3-Clause
10
 */
11
class Exception_Staleelement extends Exception {
12
13
	public function __construct(\Exception $previous = NULL)
14
	{
15
		parent::__construct(
16
			'StaleElementReferenceException: Element is no longer attached to the DOM',
17
			array(),
18
			$previous
19
		);
20
21
		$this->code = 10;
22
	}
23
}
24