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:
Dominik Stadler 2014-02-15 10:43:58 +00:00
parent 0e9bbce9ed
commit a264f7c3c3
1 changed files with 1 additions and 1 deletions

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);