<?phpdeclare(strict_types=1);namespaceDoctrine\DBAL\Driver;useThrowable;/** * @psalm-immutable */interfaceExceptionextendsThrowable{/** * Returns the driver specific error code if available. *
* Returns null if no driver specific error code is available * for the error raised by the driver. * * @return int|string|null */publicfunctiongetErrorCode();/** * 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. * * @return string|null */publicfunctiongetSQLState();}