Code example for SQLException

Methods: toString

0
db.execSQL(insertQuery);
		} 
		catch (SQLException ex)
		{ 
			Log.e("AdvWars", ex.toString());
		} 
	} 
	 
	public void insertData(String table, ContentValues data)
	{ 
		try 
		{ 
			db.insertOrThrow(table, null, data);
		} 
		catch (SQLException ex)
		{ 
			Log.e("AdvWars", ex.toString());
		} 
	} 
Stop searching for code, let great code find you!  Add Codota to your java IDE