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