summaryrefslogtreecommitdiff
path: root/vendor/doctrine/dbal/src/Driver/Exception.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/dbal/src/Driver/Exception.php')
-rw-r--r--vendor/doctrine/dbal/src/Driver/Exception.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/Driver/Exception.php b/vendor/doctrine/dbal/src/Driver/Exception.php
new file mode 100644
index 0000000..34d9a51
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Driver/Exception.php
@@ -0,0 +1,25 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Driver;
6
7use Throwable;
8
9/**
10 * Contract for a driver exception.
11 *
12 * Driver exceptions provide the SQLSTATE of the driver
13 * and the driver specific error code at the time the error occurred.
14 *
15 * @psalm-immutable
16 */
17interface Exception extends Throwable
18{
19 /**
20 * Returns the SQLSTATE the driver was in at the time the error occurred.
21 *
22 * Returns null if the driver does not provide a SQLSTATE for the error occurred.
23 */
24 public function getSQLState(): ?string;
25}