LastError

interface LastError(source)

Provides access to the most recent database error information.

Note that value returned by the member properties may change while the database connection is used.

Properties

Link copied to clipboard
abstract val code: SqliteResultCode

Error code.

Link copied to clipboard

Extended error code.

Link copied to clipboard
abstract val message: String?

UTF-8 encoded English language explanation.

Link copied to clipboard
abstract val offset: Int

Byte offset of the start of the token specified by the input SQL, if referenced by the most recent error.

Link copied to clipboard
abstract val systemError: Int

OS-dependant error code or error number that caused the most recent I/O error or failure to open a file.

Functions

Link copied to clipboard
abstract fun update(errorCode: SqliteResultCode, errorMessage: String? = null)

Sets the code to errorCode and message to errorMessage.