SQLiteException

open class SQLiteException(val result: SqliteResultCode.Failure, val message: String, cause: Throwable? = null) : RuntimeException(source)

Exception thrown when a call to an SQLite API fails with a non-successful result code.

User callback code can also throw this exception. When it escapes a callback invoked by SQLite, result and message are forwarded to SQLite as the failure it reports back to the caller.

throwSQLiteException is a shorthand for constructing and throwing an instance of this class.

Constructors

Link copied to clipboard
constructor(result: SqliteResultCode.Failure, message: String, cause: Throwable? = null)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
open override val message: String
Link copied to clipboard

The result returned by the API call that failed.