HttpConnectionException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Onoi\HttpRequest\Exception;
4
5
/**
6
 * @license GNU GPL v2+
7
 * @since 1.0
8
 *
9
 * @author mwjames
10
 */
11
class HttpConnectionException extends \Exception {
12
13
	/**
14
	 * @since  1.0
15
	 *
16
	 * @param string $message
17
	 * @param integer $errorCode
18
	 */
19 2
	public function __construct( $message = '', $errorCode = 0 ) {
20 2
		parent::__construct( "Failed http connection with error $errorCode ($message).\n" );
21 2
	}
22
23
}
24