padvou Active Member Licensed User Longtime User Mar 11, 2016 #1 Let's suppose that inside a try catch block, an exception is raised. is it possible inside the catch end try block to log the LastException.Message to an sqlite db?
Let's suppose that inside a try catch block, an exception is raised. is it possible inside the catch end try block to log the LastException.Message to an sqlite db?
KMatle Expert Licensed User Longtime User Mar 11, 2016 #2 You can do whatever you want with it Upvote 0
padvou Active Member Licensed User Longtime User Mar 12, 2016 #3 KMatle said: You can do whatever you want with it Click to expand... Thank you. Could you please post a snippet catching the exception and logging it in a db table row? Last edited: Mar 12, 2016 Upvote 0
KMatle said: You can do whatever you want with it Click to expand... Thank you. Could you please post a snippet catching the exception and logging it in a db table row?
KMatle Expert Licensed User Longtime User Mar 12, 2016 #4 A snippet will not do. See here: https://www.b4x.com/android/forum/threads/sqlitelight-four-simple-sqlite-projects.35419/#content Maybe simpler: Write it to a file (RAF encrypted perhaps). Upvote 0
A snippet will not do. See here: https://www.b4x.com/android/forum/threads/sqlitelight-four-simple-sqlite-projects.35419/#content Maybe simpler: Write it to a file (RAF encrypted perhaps).
padvou Active Member Licensed User Longtime User Mar 12, 2016 #5 KMatle said: A snippet will not do. See here: https://www.b4x.com/android/forum/threads/sqlitelight-four-simple-sqlite-projects.35419/#content Maybe simpler: Write it to a file (RAF encrypted perhaps). Click to expand... I wasn't clear about what my actual question is. Right after an exception takes place, it's caught in the catch block. If I have some logging code there, it doesn't log the exception message for some reason. Upvote 0
KMatle said: A snippet will not do. See here: https://www.b4x.com/android/forum/threads/sqlitelight-four-simple-sqlite-projects.35419/#content Maybe simpler: Write it to a file (RAF encrypted perhaps). Click to expand... I wasn't clear about what my actual question is. Right after an exception takes place, it's caught in the catch block. If I have some logging code there, it doesn't log the exception message for some reason.
Reviewnow Active Member Licensed User Longtime User Mar 12, 2016 #6 See this link, Replace the email log routine with add to database routine https://www.b4x.com/android/forum/threads/uncaught-exceptions.59805/#content Upvote 0
See this link, Replace the email log routine with add to database routine https://www.b4x.com/android/forum/threads/uncaught-exceptions.59805/#content
padvou Active Member Licensed User Longtime User Mar 13, 2016 #7 Reviewnow said: See this link, Replace the email log routine with add to database routine https://www.b4x.com/android/forum/threads/uncaught-exceptions.59805/#content Click to expand... Yes, I had seen this thread. By implementing that, what happens to the traditional Try Catch? I mean that per specific circumstances in the application code, different Try Catch can provide different solutions. Upvote 0
Reviewnow said: See this link, Replace the email log routine with add to database routine https://www.b4x.com/android/forum/threads/uncaught-exceptions.59805/#content Click to expand... Yes, I had seen this thread. By implementing that, what happens to the traditional Try Catch? I mean that per specific circumstances in the application code, different Try Catch can provide different solutions.