Code example for SQLException

Methods: getLocalizedMessage

0
			 
 
		} 
		catch (SQLException e)
		{ 
			Log.d(TAG,"SQLite exception: " + e.getLocalizedMessage());
		} 
    } 
 
    public void close() 
    { 
		m_db.close();
    } 
     
    private void CreateDatabase(SQLiteDatabase db)
    { 
		try 
		{ 
			db.execSQL(DBVERSION_CREATE);
			ContentValues args = new ContentValues();
			args.put("version", DATABASE_VERSION);
			db.insert(TABLE_DBVERSION, null, args);
 
			db.execSQL(TABLE_LOG_CREATE);
			db.execSQL(TABLE_CELL_CREATE);
			db.execSQL(TABLE_TAGS_CREATE);
		} 
		catch (SQLException e)
		{ 
			Log.d(TAG,"SQLite exception: " + e.getLocalizedMessage());
		}  
    } 
     
    private void MigrateDatabase(SQLiteDatabase db, int fromVersion, int toVersion)
    {