Browse Source

Report which actual record a failing sid represents

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691310 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_3_13_FINAL
Dominik Stadler 9 years ago
parent
commit
31bc9eb190
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/java/org/apache/poi/hssf/record/RecordInputStream.java

+ 2
- 1
src/java/org/apache/poi/hssf/record/RecordInputStream.java View File

@@ -52,7 +52,8 @@ public final class RecordInputStream implements LittleEndianInput {
public static final class LeftoverDataException extends RuntimeException {
public LeftoverDataException(int sid, int remainingByteCount) {
super("Initialisation of record 0x" + Integer.toHexString(sid).toUpperCase()
+ " left " + remainingByteCount + " bytes remaining still to be read.");
+ "(" + RecordFactory.getRecordClass(sid).getSimpleName() + ") left " + remainingByteCount
+ " bytes remaining still to be read.");
}
}


Loading…
Cancel
Save