Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/p2/metadata/io/IUDeserializer.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/p2/metadata/io/IUDeserializer.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/p2/metadata/io/IUDeserializer.java b/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/p2/metadata/io/IUDeserializer.java
index 0f8493bae..63ace1841 100644
--- a/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/p2/metadata/io/IUDeserializer.java
+++ b/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/p2/metadata/io/IUDeserializer.java
@@ -66,9 +66,13 @@ public class IUDeserializer {
}
throw new IOException(status.toString());
} catch (ParserConfigurationException configException) {
- throw new IOException(configException.getMessage());
+ IOException ioException = new IOException(configException.getMessage());
+ ioException.initCause(configException);
+ throw ioException;
} catch (SAXException saxException) {
- throw new IOException(saxException.getMessage());
+ IOException ioException = new IOException(saxException.getMessage());
+ ioException.initCause(saxException);
+ throw ioException;
}
}

Back to the top