Code example for URISyntaxException

Methods: getMessage

0
		 
		// Result tuple is in the format: peer - file 
		try { 
			sandwichClient.startFileDownloadFromPeer(resultTuple[0], resultTuple[1]);
		} catch (URISyntaxException e) {
			Dialog.displayDialog(activity, "Download Error", e.getMessage(), false);
		} 
	} 
 
	 
	@Override 
	// Called in UI thread to add search result 
	public void run() { 
		@SuppressWarnings("unchecked") 
		ArrayAdapter<String> listAdapter = (ArrayAdapter<String>)resultsView.getAdapter();
		 
		synchronized (results) {
			for (String result : results)
			{ 
				listAdapter.add(result);
			}