Code example for SQLiteException

0
	public ChannelDAO(SQLiteDatabase sqLiteDatabase)
	{ 
		this.db	= sqLiteDatabase;
		if(this.db == null)
		{ 
			throw new SQLiteException("sqlite can't open");
		} 
	} 
 
	public List<Channel> getAvilableChannelList()
	{ 
		List<Channel> list = new ArrayList<Channel>();
		Timestamp prev = new Timestamp((long) (System.currentTimeMillis() - 1.5552e10));
		String columns[] = {"id","name","sid"};
		String selection = "lstupdate > ?";
		String selectionArgs[] = {prev.toString()};
		Cursor result = db.query("channel", columns, selection, selectionArgs, null, null, null);
		result.moveToFirst(); 
		while(!result.isAfterLast())
		{ 
			Channel tchannel = new Channel();