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
This commit is contained in:
parent
1217315d36
commit
2cb60f5821
@ -52,7 +52,8 @@ public final class RecordInputStream implements LittleEndianInput {
|
|||||||
public static final class LeftoverDataException extends RuntimeException {
|
public static final class LeftoverDataException extends RuntimeException {
|
||||||
public LeftoverDataException(int sid, int remainingByteCount) {
|
public LeftoverDataException(int sid, int remainingByteCount) {
|
||||||
super("Initialisation of record 0x" + Integer.toHexString(sid).toUpperCase()
|
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…
Reference in New Issue
Block a user