android-ibc-forum

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 06cfd93e981b3edb6fd08cab12e6dca75bb685d6
parent 75ff5a8689e4fba96675ee6e76b1be406d3c4864
Author: Jan Dankert <devnull@localhost>
Date:   Sat, 13 Oct 2012 02:07:22 +0200

Grund anzeigen, wenn RSS-Feed nicht geladen werden kann.

Diffstat:
src/de/mtbnews/android/IBCActivity.java | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/de/mtbnews/android/IBCActivity.java b/src/de/mtbnews/android/IBCActivity.java @@ -42,6 +42,7 @@ import android.widget.ListView; import android.widget.AdapterView.OnItemClickListener; import de.mtbnews.android.adapter.ListEntryContentAdapter; import de.mtbnews.android.util.IBC; +import de.mtbnews.android.util.IBCException; import de.mtbnews.android.util.ServerAsyncTask; /** @@ -99,7 +100,7 @@ public class IBCActivity extends ListActivity private RSSFeed feed; @Override - protected void callServer() throws IOException + protected void callServer() throws IBCException { final RSSFeed oldFeed = ((IBCApplication) getApplication()) .getNewsFeed(); @@ -119,11 +120,13 @@ public class IBCActivity extends ListActivity } catch (RSSReaderException e) { - throw new ClientProtocolException(e); + throw new IBCException(R.string.error_io, e + .getMessage(), e); } catch (RSSFault e) { - throw new ClientProtocolException(e); + throw new IBCException(R.string.error_io, e + .getMessage(), e); } } }