Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class InvalidQueryException extends \Exception |
||
16 | { |
||
17 | |||
18 | const MSG_INSTANCE = 'Invalid query instance'; |
||
19 | const MSG_TYPE = 'Invalid query type'; |
||
20 | |||
21 | /** |
||
22 | * constructor |
||
23 | * |
||
24 | * @param string $message |
||
25 | * @param integer $code |
||
26 | */ |
||
27 | public function __construct(string $message, int $code = 10) |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * retuns message |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | public function __toString() |
||
42 |