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());
		} 
	} 
Experience pair programming with AI  Get Codota for Java