SQLiteException not being caught

后端 未结 4 1836
自闭症患者
自闭症患者 2021-01-19 22:56

I\'m trying to catch an \"android.database.sqlite.SQLiteException: error code 5: database is locked\" exception with:

    try {
        db.insert(\"mytable\"         


        
4条回答
  •  清歌不尽
    2021-01-19 23:47

    Try this

    try { 
    
    } catch( SQLiteException e) {
         Log.e("My App",e.toString(), e);
    }
    

提交回复
热议问题