DriverException
in
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.
Tags
Table of Contents
- getErrorCode() : int|string|null
- Returns the driver specific error code if available.
- getMessage() : string
- Returns the driver error message.
- getSQLState() : string|null
- Returns the SQLSTATE the driver was in at the time the error occurred.
Methods
getErrorCode()
Returns the driver specific error code if available.
public
getErrorCode() : int|string|null
Returns null if no driver specific error code is available for the error raised by the driver.
Return values
int|string|null —getMessage()
Returns the driver error message.
public
getMessage() : string
Return values
string —getSQLState()
Returns the SQLSTATE the driver was in at the time the error occurred.
public
getSQLState() : string|null
Returns null if the driver does not provide a SQLSTATE for the error occurred.