From: Dominik Stadler Date: Tue, 31 Dec 2013 15:11:44 +0000 (+0000) Subject: Print out which actual value was out of range X-Git-Tag: REL_3_10_FINAL~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=63e84bd79d4572f3e4201758127fb725bd0f0661;p=poi.git 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 --- diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java b/src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java index 7f4e77b5c4..b1df28f221 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java @@ -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