DriverException.php 535 Bytes
Newer Older
1 2
<?php

Michael Moravec's avatar
Michael Moravec committed
3 4
declare(strict_types=1);

5
namespace Doctrine\DBAL\Driver;
6

7 8
use Throwable;

9
/**
10 11 12 13
 * Contract for a driver exception.
 *
 * Driver exceptions provide the SQLSTATE of the driver
 * and the driver specific error code at the time the error occurred.
14
 */
15
interface DriverException extends Throwable
16
{
17 18 19 20 21
    /**
     * Returns the SQLSTATE the driver was in at the time the error occurred.
     *
     * Returns null if the driver does not provide a SQLSTATE for the error occurred.
     */
22
    public function getSQLState() : ?string;
23
}