I have code in one of my Android apps that catches a SQLException, but I recently discovered that it did not catch a SQLiteException. Obviously, SQLiteException is a child of SQLException, so why won't it get caught? Here is the code I'm using.
try { ...
I suggest that I should catch a SQLiteException?
If that matters at all, I use this code not inside the Activity, but inside a class that extends the Application class.
As an extra note, I added an extra catch( Exception e ){} to see if this will work, and it really works as expected.
java android exception
Pzanno
source share