Code example for SQLException

Methods: toString

0
                cursor.moveToFirst();
                return cursor;
            } 
        } 
        catch (SQLException e) {
            Log.e("AutoCompleteDbAdapter", e.toString());
            throw e;
        } 
 
        return null; 
    } 
 
    /** 
     * Populates the database with data on company name, bse, nse symbols 
     *  
     * @param db 
     *            The database to be populated; must have the appropriate table 
     *            ("symbol_map") and columns (company , nse, bse) already set up. 
     */ 
    private void populateWithData(SQLiteDatabase db) {
        try {