SQLException
class in package klyn.databases.sql

    public class SQLException extends Exception:

Object
└ 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.

Inherited Properties
property Inherited Properties from Exception: message
property Inherited Properties 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.

Inherited Methods
method Inherited Methods from Exception: toString
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml