mirror of https://github.com/apache/poi.git
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
0e9bbce9ed
commit
a264f7c3c3
|
@ -66,7 +66,7 @@ public class EncryptionInfo {
|
||||||
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);
|
||||||
|
|
Loading…
Reference in New Issue