Code example for SQLException

Methods: printStackTrace

0
			int announcement_id = cursor.getInt(1);
			String annoucement = cursor.getString(2);
			 
			return(new ServerAnnouncement(id, announcement_id, annoucement));
		} catch (SQLException e) {
			e.printStackTrace();
			return(null); 
		} 
	} 
	 
	/** Generates the set of ContentValues that can be used to save this ServerAnnoucement to an 
	 * Android SQLite database. 
	 * @return 
	 */ 
	public ContentValues generateContentValuesforDBInsert() {
		ContentValues returned = new ContentValues();
		 
		returned.put(COLUMN_ANNOUNCEMENT_ID, serverAnnouncementId);
		returned.put(COLUMN_ANNOUNCEMENT, serverAnnouncement);
		 
		return(returned);