Improve error-message, include some details why processing the file fails

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897320 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2022-01-22 06:58:47 +00:00
parent 7283d7ed64
commit 16a24ecd79
1 changed files with 3 additions and 1 deletions

View File

@ -87,7 +87,9 @@ public class PropertySetFactory {
if (byteOrder != PropertySet.BYTE_ORDER_ASSERTION || if (byteOrder != PropertySet.BYTE_ORDER_ASSERTION ||
format != PropertySet.FORMAT_ASSERTION || format != PropertySet.FORMAT_ASSERTION ||
sectionCount < 0) { sectionCount < 0) {
throw new NoPropertySetStreamException(); throw new NoPropertySetStreamException("ByteOrder: " + byteOrder +
", format: " + format +
", sectionCount: " + sectionCount);
} }
if (sectionCount > 0) { if (sectionCount > 0) {