SQLException
classin packageklyn.databases.sql
public class SQLException extends Exception:
└ SQLException

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)
Properties
Modifier and Type Member Description
public property sqlState
sqlState as String
Optional five-character SQL state.
public property vendorCode
vendorCode as Int
Optional vendor-specific error code.
Properties inherited from Exception: message
Properties inherited from Object: type
Constructors
Modifier and Type Member Description
public SQLException
SQLException(message as String = "", sqlState as String = "", vendorCode as Int = 0):
Creates an SQL exception.
Methods inherited from Exception: toString
Methods inherited from Object: fromJson, toDict, toJson, toString, toXml