提交 65155769 authored 作者: Thomas Mueller's avatar Thomas Mueller

Java 5

上级 645494c4
...@@ -121,7 +121,7 @@ public class CreateScriptFile { ...@@ -121,7 +121,7 @@ public class CreateScriptFile {
} }
return new PrintWriter(new OutputStreamWriter(out, charset)); return new PrintWriter(new OutputStreamWriter(out, charset));
} catch (Exception e) { } catch (Exception e) {
throw new IOException(e); throw (IOException) new IOException(e.getMessage()).initCause(e);
} }
} }
...@@ -157,7 +157,7 @@ public class CreateScriptFile { ...@@ -157,7 +157,7 @@ public class CreateScriptFile {
} }
return new LineNumberReader(new InputStreamReader(in, charset)); return new LineNumberReader(new InputStreamReader(in, charset));
} catch (Exception e) { } catch (Exception e) {
throw new IOException(e); throw (IOException) new IOException(e.getMessage()).initCause(e);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论