- Jun 6, 2020
- 11,559
- 4,422
Hello, hope you are all fine.
Today my question to the professionals is concerning the use of SQL or SQLCIPHER Library.
If we do any sql action via the library like an insert a.s.o. it might be possible to fall into an error situation because for example we are going to insert a record with a column value in a unique column that already is stored in the table.
If there is an error on SQLite Database level SQLite reports ErrorCodes but how to get them?
What is the best way (some code examples are requested) to trapp such sql errors, for example to show the user an understandable error message?
Thank you in Advance
best regards
Guenter
Today my question to the professionals is concerning the use of SQL or SQLCIPHER Library.
If we do any sql action via the library like an insert a.s.o. it might be possible to fall into an error situation because for example we are going to insert a record with a column value in a unique column that already is stored in the table.
If there is an error on SQLite Database level SQLite reports ErrorCodes but how to get them?
What is the best way (some code examples are requested) to trapp such sql errors, for example to show the user an understandable error message?
Thank you in Advance
best regards
Guenter
برای دیدن لینک ها باید ثبت نام کنید