List of usage examples for android.database.sqlite SQLiteException getLocalizedMessage
public String getLocalizedMessage()
From source file:org.spinsuite.sync.SyncDataTask.java
/** * Run a Query/* w ww . j a va 2 s .c om*/ * @author Carlos Parada, cparada@erpcya.com, ERPCyA http://www.erpcya.com * @param sql * @param data * @return void */ private void runQuery(String sql, Object[] data) { try { // Parse SQL String parsedSQL = Env.parseContext(sql, true); if (data != null) conn.executeSQL(parsedSQL, data); else conn.executeSQL(parsedSQL); } catch (SQLiteException e) { e.printStackTrace(); m_PublicMsg = e.getLocalizedMessage(); } catch (Exception e) { e.printStackTrace(); m_PublicMsg = e.getLocalizedMessage(); } finally { publishOnRunning(); } }
From source file:com.spoiledmilk.ibikecph.util.DB.java
public SQLiteDatabase getReadableDatabase() { SQLiteDatabase db = null;/* www. j av a 2s . c om*/ try { db = super.getReadableDatabase(); } catch (SQLiteException e) { LOG.e(e.getLocalizedMessage()); } return db; }
From source file:com.spoiledmilk.ibikecph.util.DB.java
public SQLiteDatabase getWritableDatabase() { SQLiteDatabase db = null;/*from w ww. ja v a2 s.co m*/ try { db = super.getWritableDatabase(); } catch (SQLiteException e) { LOG.e(e.getLocalizedMessage()); } return db; }