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

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -