Code example for SQLiteException

Methods: toString

0
        try { 
            String myPath = mDBPath + mDBPath;
            mCheckDataBase = SQLiteDatabase.openDatabase(myPath, null,
                    SQLiteDatabase.NO_LOCALIZED_COLLATORS);
        } catch (SQLiteException mSQLiteException) {
            mLog.warning(LOGTAG_, "DatabaseNotFound " + mSQLiteException.toString());
        } 
 
        if (mCheckDataBase != null) {
            mCheckDataBase.close();
        } 
        return mCheckDataBase != null;
    } 
 
    private void copyDataBase() throws IOException { 
 
        mLog.info(LOGTAG_, " Copying Database [" + mDatabaseName + "] to [" + mDBPath + mDBPath + "]");
        InputStream mInput = mContext.getAssets().open(mDatabaseName);
        String outFileName = mDBPath + mDatabaseName;
        OutputStream mOutput = new FileOutputStream(outFileName);
        byte[] mBuffer = new byte[1024];