public class SQLException extends Exception:
Base exception for SQL access, statement preparation and result processing.
SQL state and vendor code are exposed as direct properties.
import klyn.databases.sql
ex = SQLException("Syntax error near SELECT", "42000", 1064)
print(ex.sqlState)| Modifier and Type | Member | Description |
|---|---|---|
| public property | sqlStatesqlState as String |
Optional five-character SQL state. |
| public property | vendorCodevendorCode as Int |
Optional vendor-specific error code. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | SQLExceptionSQLException(message as String = "", sqlState as String = "", vendorCode as Int = 0): |
Creates an SQL exception. |