← Back to Stormify Documentation

SQLException

An exception that is thrown when a database error occurs.

This exception is used throughout KDBC and Stormify for all database-related errors:

  • Connection failures

  • Query execution errors

  • Transaction errors

  • Data type conversion errors

  • Constraint violations

It is a RuntimeException and does not need to be caught, though catching it is recommended for proper error handling.

Constructors

Link copied to clipboard
constructor(message: String?)

Creates a new SQLException with a message.

constructor(message: String?, cause: Throwable?)

Creates a new SQLException with a message and a cause.