ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1171164 - /webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaCollection.java
Date Thu, 15 Sep 2011 16:31:57 GMT
Author: dkulp
Date: Thu Sep 15 16:31:57 2011
New Revision: 1171164

URL: http://svn.apache.org/viewvc?rev=1171164&view=rev
Log:
Make sure we set the cause for some thrown exceptions so we know why

Modified:
    webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaCollection.java

Modified: webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaCollection.java
URL: http://svn.apache.org/viewvc/webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaCollection.java?rev=1171164&r1=1171163&r2=1171164&view=diff
==============================================================================
--- webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaCollection.java
(original)
+++ webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaCollection.java
Thu Sep 15 16:31:57 2011
@@ -708,11 +708,11 @@ public final class XmlSchemaCollection {
             doc = parseDoPriv(inputSource, builder, doc);
             return read(doc, inputSource.getSystemId(), namespaceValidator);
         } catch (ParserConfigurationException e) {
-            throw new XmlSchemaException(e.getMessage());
+            throw new XmlSchemaException(e.getMessage(), e);
         } catch (IOException e) {
-            throw new XmlSchemaException(e.getMessage());
+            throw new XmlSchemaException(e.getMessage(), e);
         } catch (SAXException e) {
-            throw new XmlSchemaException(e.getMessage());
+            throw new XmlSchemaException(e.getMessage(), e);
         }
     }
 



Mime
View raw message