Uncatchable webview exception?
<p>I want to clear all webview data from my app. I'm doing the following:</p>

<pre><code>WebViewDatabase wvd = WebViewDatabase.getInstance(context);
if (wvd != null) {
    try { 
        wvd.clearUsernamePassword(); &lt;-- throws an uncatchable exception
    } catch (Exception ex) {
        Log.e(TAG, "nope!", ex);
    }
}
</code></pre>

<p>The clearUsernamePassword() line throws an exception, and it's not being caught by the above try / catch:</p>

<pre><code>native_execute (step): errno = 2, error message = No such file or directory, handle = 0x47ec78
clearUsernamePassword Storage full, abort doing SQLite operation.
android.database.sqlite.SQLiteDiskIOException: error code 10: disk I/O error
  at android.database.sqlite.SQLiteStatement.native_execute(Native Method)
  at android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:61)
  at android.database.sqlite.SQLiteDatabase.delete(SQLiteDatabase.java:1721)
  at android.webkit.WebViewDatabase.clearUsernamePassword(WebViewDatabase.java:1278)
</code></pre>

<p>What are we supposed to do here?</p>

<p>Thanks</p>

<p>-------- Update ---------</p>

<p>Here's a link to the method that's causing it (it's not mine, it's part of android):
<a href="http://developer.android.com/reference/android/webkit/WebViewDatabase.html#clearUsernamePassword" rel="nofollow">http://developer.android.com/reference/android/webkit/WebViewDatabase.html#clearUsernamePassword</a>()</p>

<p>I'm actually getting a few exceptions like this from different methods of WebViewDatabase (the app has lots of downloads thus the high volume I'm seeing. I actually was able to finally reproduce this on a device).</p>

<p>The above code is not being run on a separate thread.</p>
