Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | abstract class AbstractDriverException extends Exception implements DriverException |
||
14 | { |
||
15 | /** |
||
16 | * The SQLSTATE of the driver. |
||
17 | * |
||
18 | * @var string|null |
||
19 | */ |
||
20 | private $sqlState; |
||
21 | |||
22 | /** |
||
23 | * @param string $message The driver error message. |
||
24 | * @param string|null $sqlState The SQLSTATE the driver is in at the time the error occurred, if any. |
||
25 | * @param int $code The driver specific error code if any. |
||
26 | * @param Throwable|null $previous The previous throwable used for the exception chaining. |
||
27 | */ |
||
28 | 3023 | public function __construct(string $message, ?string $sqlState = null, int $code = 0, ?Throwable $previous = null) |
|
33 | 3023 | } |
|
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | 2871 | public function getSQLState() : ?string |
|
43 |