Passed
Push — master ( 2c321e...f12c68 )
by Henri
01:20
created

DatamanagerException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 10
rs 10
wmc 2
1
<?php
2
3
namespace HnrAzevedo\Datamanager;
4
5
use Exception;
6
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
    }
18
19
}