在Android中处理创建表错误的正确方法是什么?

时间:2016-09-18 19:56:32

标签: java android error-handling try-catch

例如此代码段

Log.i(LOG_TAG, "Creating Table: " + createTableStatement);

try {
    db.execSQL(createTableStatement);
}
catch (SQLException e) { //from 'import android.database.SQLException;'
    //do something
}

我应该做什么?"做某事"一部分?

0 个答案:

没有答案