[Mulgara-svn] r178 - trunk/src/jar/store-stringpool/java/org/mulgara/store/stringpool/xa

pag at mulgara.org pag at mulgara.org
Sat Feb 24 19:21:04 UTC 2007


Author: pag
Date: 2007-02-24 13:21:03 -0600 (Sat, 24 Feb 2007)
New Revision: 178

Modified:
   trunk/src/jar/store-stringpool/java/org/mulgara/store/stringpool/xa/SPXMLLiteralImpl.java
Log:
Chained an underlying exception when throwing an IllegalArgumentException

Modified: trunk/src/jar/store-stringpool/java/org/mulgara/store/stringpool/xa/SPXMLLiteralImpl.java
===================================================================
--- trunk/src/jar/store-stringpool/java/org/mulgara/store/stringpool/xa/SPXMLLiteralImpl.java	2007-02-24 02:11:42 UTC (rev 177)
+++ trunk/src/jar/store-stringpool/java/org/mulgara/store/stringpool/xa/SPXMLLiteralImpl.java	2007-02-24 19:21:03 UTC (rev 178)
@@ -117,10 +117,9 @@
       RdfXmlParser parser = new RdfXmlParser(jrdfMem.getElementFactory());
       parser.parse(new StringReader(document), URI.create("urn:foo:bar").
           toString());
+    } catch (Exception e) {
+      throw new IllegalArgumentException("Failed to validate: " + str, e);
     }
-    catch (Exception e) {
-      throw new IllegalArgumentException("Failed to validate: " + str);
-    }
   }
 
   SPXMLLiteralImpl(ByteBuffer data) {




More information about the Mulgara-svn mailing list