From deae8b1793a07720085f56e159be10c74717723c Mon Sep 17 00:00:00 2001 From: allo Date: Fri, 8 Jun 2007 15:23:05 +0000 Subject: [PATCH] display an error instead of an exception git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3834 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/FeedReader_p.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htroot/FeedReader_p.java b/htroot/FeedReader_p.java index 577c8f47c..25f57d788 100644 --- a/htroot/FeedReader_p.java +++ b/htroot/FeedReader_p.java @@ -39,7 +39,7 @@ public class FeedReader_p { Class rssReaderClass; String url; Object reader; - public FeedReader_p(String url) throws ClassNotFoundException{ + public FeedReader_p(String url) throws ClassNotFoundException, NoClassDefFoundError{ this.url=url; //reflection Class[] paramClasses=new Class[1]; @@ -99,7 +99,10 @@ public class FeedReader_p { try { self = new FeedReader_p(url.toString()); } catch (ClassNotFoundException e) { - System.out.println("DEBUG!!!"); + prop.put("page", 2); + prop.put("page_error", 0); + return prop; + } catch (NoClassDefFoundError e) { prop.put("page", 2); prop.put("page_error", 0); return prop;