In v3.3.8, SQLite added "extended error codes" (http://www.sqlite.org/c3ref/c_busy_recovery.html), which provide more fine-grained error information, particularly for SQLITE_IOERR. The attached patch adds the extended error information to the SQLiteException object's exception message; we have found this helpful for debugging the specific underlying problem on a client computer.