Loading core/java/android/database/sqlite/SQLiteConnection.java +20 −13 Original line number Diff line number Diff line Loading @@ -228,6 +228,10 @@ public final class SQLiteConnection implements CancellationSignal.OnCancelListen } catch (SQLiteCantOpenDatabaseException e) { String message = String.format("Cannot open database '%s'", file); try { // Try to diagnose for common reasons. If something fails in here, that's fine; // just swallow the exception. final Path path = FileSystems.getDefault().getPath(file); final Path dir = path.getParent(); Loading @@ -242,6 +246,9 @@ public final class SQLiteConnection implements CancellationSignal.OnCancelListen } else { message += ": Unknown reason"; } } catch (Throwable th) { message += ": Unknown reason; cannot examine filesystem: " + th.getMessage(); } throw new SQLiteCantOpenDatabaseException(message, e); } finally { mRecentOperations.endOperation(cookie); Loading Loading
core/java/android/database/sqlite/SQLiteConnection.java +20 −13 Original line number Diff line number Diff line Loading @@ -228,6 +228,10 @@ public final class SQLiteConnection implements CancellationSignal.OnCancelListen } catch (SQLiteCantOpenDatabaseException e) { String message = String.format("Cannot open database '%s'", file); try { // Try to diagnose for common reasons. If something fails in here, that's fine; // just swallow the exception. final Path path = FileSystems.getDefault().getPath(file); final Path dir = path.getParent(); Loading @@ -242,6 +246,9 @@ public final class SQLiteConnection implements CancellationSignal.OnCancelListen } else { message += ": Unknown reason"; } } catch (Throwable th) { message += ": Unknown reason; cannot examine filesystem: " + th.getMessage(); } throw new SQLiteCantOpenDatabaseException(message, e); } finally { mRecentOperations.endOperation(cookie); Loading