Exception::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 3
1
<?php
2
3
/**
4
 * Exception
5
 */
6
7
namespace HDNET\Tagger;
8
9
/**
10
 * Class Exception
11
 */
12
class Exception extends \Exception
13
{
14
15
    /**
16
     * Add the wiki Link in Front of the Error Message
17
     *
18
     * @param string $message
19
     * @param integer $code
20
     * @param mixed $previous
21
     */
22
    public function __construct($message, $code = null, $previous = null)
23
    {
24
        $message = 'Tagger Extension Errror: ' . $message . ' --- More Information in the Tager Wiki Code (<a href="http://forge.typo3.org/projects/extension-tagger/wiki/Errors#' . $code . '">More information</a>) or TYPO3 Wiki ';
25
        parent::__construct($message, $code, $previous);
26
    }
27
}
28