AbstractDriverException
abstract class AbstractDriverException extends Exception implements DriverException (View source)
Abstract base implementation of the {@link DriverException} interface.
Methods
__construct(string $message, string|null $sqlState = null, int|string|null $errorCode = null)
Constructor.
int|string|null
getErrorCode()
Returns the driver specific error code if available.
string|null
getSQLState()
Returns the SQLSTATE the driver was in at the time the error occurred.
Details
at line 52
__construct(string $message, string|null $sqlState = null, int|string|null $errorCode = null)
Constructor.
at line 63
int|string|null
getErrorCode()
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.
at line 71
string|null
getSQLState()
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.