Total Complexity | 3 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 53.85% |
Changes | 0 |
1 | <?php |
||
12 | abstract class AbstractDriverException extends Exception implements DriverException |
||
13 | { |
||
14 | /** |
||
15 | * The driver specific error code. |
||
16 | * |
||
17 | * @var int|string|null |
||
18 | */ |
||
19 | private $errorCode; |
||
20 | |||
21 | /** |
||
22 | * The SQLSTATE of the driver. |
||
23 | * |
||
24 | * @var string|null |
||
25 | */ |
||
26 | private $sqlState; |
||
27 | |||
28 | /** |
||
29 | * @param string $message The driver error message. |
||
30 | * @param string|null $sqlState The SQLSTATE the driver is in at the time the error occurred, if any. |
||
31 | * @param int|string|null $errorCode The driver specific error code if any. |
||
32 | */ |
||
33 | 1015 | public function __construct($message, $sqlState = null, $errorCode = null) |
|
39 | 1015 | } |
|
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | 998 | public function getErrorCode() |
|
47 | } |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function getSQLState() |
||
57 |