Code example for SQLException

Methods: printStackTrace

0
			myDbHelper.openDataBase();
			myDbHelper.dbquery(parkingLocations);
			myDbHelper.close();
 
		} catch (SQLException sqle) {
			sqle.printStackTrace();
		} 
		return parkingLocations;
	} 
 
	public List<ParkingLocationDataEntry> getParkingLocations(int distance, int limit, float mlat, float mlon,
			DataBaseHelper myDbHelper) {
 
		try { 
			myDbHelper.openDataBase();
			myDbHelper.dbquery(distance, mlat, mlon, limit, parkingLocations);
			myDbHelper.close();
		} catch (SQLException sqle) {
			sqle.printStackTrace();
		} 
		return parkingLocations;