Print out which actual value was out of range
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1554533 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f32e87957c
commit
d83461c3fb
@ -256,7 +256,7 @@ public final class HSSFClientAnchor extends HSSFAnchor implements ClientAnchor {
|
|||||||
|
|
||||||
private void checkRange(int value, int minRange, int maxRange, String varName) {
|
private void checkRange(int value, int minRange, int maxRange, String varName) {
|
||||||
if (value < minRange || value > maxRange)
|
if (value < minRange || value > maxRange)
|
||||||
throw new IllegalArgumentException(varName + " must be between " + minRange + " and " + maxRange);
|
throw new IllegalArgumentException(varName + " must be between " + minRange + " and " + maxRange + ", but was: " + value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user