Skip to content

Commit

Permalink
Instead of using initCause() when re-throwing exceptions, it leads to…
Browse files Browse the repository at this point in the history
… better stacktraces if a simple constructor-argument is used

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1568614 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
centic9 committed Feb 15, 2014
1 parent 8d6b1f1 commit 023fa18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java
Expand Up @@ -66,7 +66,7 @@ public EncryptionInfo(DirectoryNode dir) throws IOException {
try { try {
eib = getBuilder(encryptionMode); eib = getBuilder(encryptionMode);
} catch (Exception e) { } catch (Exception e) {
throw (IOException)new IOException().initCause(e); throw new IOException(e);
} }


eib.initialize(this, dis); eib.initialize(this, dis);
Expand Down

0 comments on commit 023fa18

Please sign in to comment.