c# - Retrieving error codes from SQLite when using ExecuteNonQuery() -


in c# project, i'm using system.data.sqlite.dll downloaded codeproject.

my problem per title - how error codes after calling sqlitecommand.executenonquery() function?

error codes such sqlite_constraint, sqlite_busy, sqlite_locked shown here.

use exception.stacktrace or sqliteexception.errorcode

try {  } catch(sqliteexception ex) {     string code = ex.errorcode; } 

Comments

Popular posts from this blog

Glib GIOChannel -

jsp - java.sql.SQLException: [Microsoft][ODBC Microsoft Access > Driver] Too few parameters. Expected 1 -

delphi - When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first? -