| Total Complexity | 1 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 24 | class SqlException extends \Exception |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Initializes the exception with givn parent exception |
||
| 28 | * |
||
| 29 | * Converts the error code to int in case driver returns it as string. |
||
| 30 | * |
||
| 31 | * @access public |
||
| 32 | * @param string $message |
||
| 33 | * @param int $code |
||
| 34 | * @param \Exception $previous |
||
| 35 | */ |
||
| 36 | public function __construct(string $message, int $code = 0, ?\Exception $previous = null) |
||
| 41 | } |
||
| 42 | } |