Code example for SQLException

Methods: toString

0
		try { 
			mDbHelper.openDataBase();
			mDbHelper.close();
			mDb = mDbHelper.getReadableDatabase();
		} catch (SQLException sqle) {
			Log.v(TAG, sqle.toString());
			throw sqle;
		} 
		return this;
	} 
 
	public void close() { 
		mDbHelper.close();
	} 
 
	public int countPrograms() { 
		Cursor c = mDb.query(PROGRAMS_TABLE, new String[] {}, null, null, null,
				null, null); 
		int count = c.getCount();
		c.close();
		return count;