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
This commit is contained in:
parent
8d6b1f1f35
commit
023fa18794
@ -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…
Reference in New Issue
Block a user