Total Complexity | 5 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class ApiErrorException extends Exception |
||
11 | { |
||
12 | public function __construct($object, $message = "", $code = 0, Exception $previous = null) |
||
17 | } |
||
18 | |||
19 | // custom string representation of object |
||
20 | public function __toString() |
||
21 | { |
||
22 | return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; |
||
23 | } |
||
24 | |||
25 | public function setError($object) |
||
35 | } |
||
36 | } |
||
38 |