mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
Include stacktrace of inner exception when block-positions are invalid in POIFSFileSystem
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1731560 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
12ac00eafd
commit
e89cb5544d
@ -483,7 +483,9 @@ public class NPOIFSFileSystem extends BlockStore
|
||||
try {
|
||||
return _data.read(bigBlockSize.getBigBlockSize(), startAt);
|
||||
} catch (IndexOutOfBoundsException e) {
|
||||
throw new IndexOutOfBoundsException("Block " + offset + " not found - " + e);
|
||||
IndexOutOfBoundsException wrapped = new IndexOutOfBoundsException("Block " + offset + " not found");
|
||||
wrapped.initCause(e);
|
||||
throw wrapped;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user