diff options
Diffstat (limited to 'vendor/doctrine/dbal/src/Driver/Exception.php')
-rw-r--r-- | vendor/doctrine/dbal/src/Driver/Exception.php | 25 |
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 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\DBAL\Driver; | ||
6 | |||
7 | use 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 | */ | ||
17 | interface 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 | } | ||