setResultError

abstract fun setResultError(message: String, result: SqliteResultCode.Failure = SqliteResultCode.ERROR): Nothing(source)

Causes SQLite to throw an exception with message. The default error code is SqliteResultCode.ERROR but can be overriden by supplying the appropriate error code

By default, SQLite sets the error code to SqliteResultCode.ERROR but it can be overridden by supplying an appropriate error result.

This method is equivalent to throwing an SQLiteException.