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
Post a Comment