Index: trunk/mwdumper/src/org/mediawiki/importer/XmlDumpReader.java |
— | — | @@ -84,9 +84,9 @@ |
85 | 85 | |
86 | 86 | parser.parse(input, this); |
87 | 87 | } catch (ParserConfigurationException e) { |
88 | | - throw new IOException(e.getMessage()); |
| 88 | + throw (IOException)new IOException(e.getMessage()).initCause(e); |
89 | 89 | } catch (SAXException e) { |
90 | | - throw new IOException(e.getMessage()); |
| 90 | + throw (IOException)new IOException(e.getMessage()).initCause(e); |
91 | 91 | } |
92 | 92 | writer.close(); |
93 | 93 | } |
— | — | @@ -202,7 +202,7 @@ |
203 | 203 | else if (qName == "namespaces") closeNamespaces(); |
204 | 204 | else if (qName == "namespace") closeNamespace(); |
205 | 205 | } catch (IOException e) { |
206 | | - throw new SAXException(e); |
| 206 | + throw (SAXException)new SAXException(e.getMessage()).initCause(e); |
207 | 207 | } |
208 | 208 | } |
209 | 209 | |
Index: trunk/mwdumper/src/org/mediawiki/dumper/Dumper.java |
— | — | @@ -223,7 +223,7 @@ |
224 | 224 | return new OutputWrapper(conn); |
225 | 225 | } catch (Exception e) { |
226 | 226 | //e.printStackTrace(); |
227 | | - throw new IOException(e.getMessage()); |
| 227 | + throw (IOException)new IOException(e.getMessage()).initCause(e); |
228 | 228 | } |
229 | 229 | } |
230 | 230 | |