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:
Dominik Stadler 2013-12-31 15:11:44 +00:00
parent ece67b1a5f
commit 63e84bd79d
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ public final class HSSFClientAnchor extends HSSFAnchor implements ClientAnchor {
private void checkRange(int value, int minRange, int maxRange, String varName) {
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