klyn.databases.sql.SQLException.SQLException
constructor
public SQLException(message as String = "", sqlState as String = "", vendorCode as Int = 0):
Description

Creates an SQL exception.

Parameters
ParameterDescription
messageHuman-readable error message.
sqlStateOptional SQL state.
vendorCodeOptional vendor-specific error code.
Example
import klyn.databases.sql

throw SQLException("Connection refused", "08001")