Completed
Push — master ( 7ca08e...5a5cfd )
by Matt
02:19
created

AkismetException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
namespace Gothick\AkismetClient;
3
4
/**
5
 * Specialised exception class for all Akismet client errors.
6
 * @author matt
7
 *
8
 */
9
class AkismetException extends \Exception
10
{
11
	// TODO: If this is all we end up doing, do we need this class at all? Might help
12
	// to distinguish our known errors from more serious errors in testing, I suppose...
13 26
	public function __construct($message, $code = 0, \Exception $previous = null)
14
	{
15 26
		parent::__construct('Gothick\AkismetClient: ' . $message, $code,
16 26
				$previous);
17
	}
18
}