Browse Source

Instead of using initCause() when re-throwing exceptions, it leads to 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
tags/REL_3_11_BETA1
Dominik Stadler 10 years ago
parent
commit
a264f7c3c3
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java

+ 1
- 1
src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java View File

@@ -66,7 +66,7 @@ public class EncryptionInfo {
try {
eib = getBuilder(encryptionMode);
} catch (Exception e) {
throw (IOException)new IOException().initCause(e);
throw new IOException(e);
}

eib.initialize(this, dis);

Loading…
Cancel
Save