klyn.databases.sql.SQLException.SQLException
constructor

    public SQLException(message as String = "", sqlState as String = "", vendorCode as Int = 0):

Description

Creates an SQL exception.

Parameters

Parameter | Description
--- | ---
`message` | Human-readable error message.
`sqlState` | Optional SQL state.
`vendorCode` | Optional vendor-specific error code.

Example

    import klyn.databases.sql

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