SQLException
classin packageklyn.databases.sql
public class SQLException extends Exception:
Base exception for SQL access, statement preparation and result processing.
The API is inspired by `java.sql.SQLException`, but adapted to Klyn by
exposing the SQL state and vendor code as direct properties.
import klyn.databases.sql
ex = SQLException("Syntax error near SELECT", "42000", 1064)
print(ex.sqlState)
Properties
| Modifier and Type |
Member |
Description |
| public property |
sqlState |
Optional five-character SQL state. |
| public property |
vendorCode |
Optional vendor-specific error code. |
Constructors
| Modifier and Type |
Member |
Description |
| public |
SQLException |
Creates an SQL exception. |