abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r557795 - /incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/Abdera.java
Date Thu, 19 Jul 2007 22:23:30 GMT
Author: jmsnell
Date: Thu Jul 19 15:23:29 2007
New Revision: 557795

URL: http://svn.apache.org/viewvc?view=rev&rev=557795
Log:
Do not hide the exception if impl classes are not available

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/Abdera.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/Abdera.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/Abdera.java?view=diff&rev=557795&r1=557794&r2=557795
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/Abdera.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/Abdera.java Thu Jul 19
15:23:29 2007
@@ -172,7 +172,7 @@
     try {
       return ServiceUtil.newXPathInstance(this);
     } catch (NoClassDefFoundError n) {
-      return null;  // Don't die if the component is not available
+      throw new RuntimeException("An Abdera XPath implementation is not available",n);
     }
   }
     
@@ -183,7 +183,7 @@
     try {
       return ServiceUtil.newParserFactoryInstance(this);
     } catch (NoClassDefFoundError n) {
-      return null;  // Don't die if the component is not available
+      throw new RuntimeException("An Abdera Parser implementation is not available",n);
     }
   }
     
@@ -194,7 +194,7 @@
     try {
       return ServiceUtil.newWriterFactoryInstance(this);
     } catch (NoClassDefFoundError n) {
-      return null;  // Don't die if the component is not available
+      throw new RuntimeException("An Abdera WriterFactory implementation is not available",n);
     }
   }
     
@@ -205,7 +205,7 @@
     try {
       return ServiceUtil.newWriterInstance(this);
     } catch (NoClassDefFoundError n) {
-      return null;  // Don't die if the component is not available
+      throw new RuntimeException("An Abdera Writer implementation is not available",n);
     }
   }
   



Mime
View raw message