Total Complexity | 2 |
Total Lines | 10 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
7 | class DatamanagerException extends Exception{ |
||
8 | |||
9 | public function __construct($message, $code = 0, Exception $previous = null) |
||
10 | { |
||
11 | parent::__construct($message, intval($code), $previous); |
||
12 | } |
||
13 | |||
14 | public function __toString() |
||
15 | { |
||
16 | return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; |
||
17 | } |
||
19 | } |