aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2016-01-13 19:45:05 +0000
committerDominik Stadler <centic@apache.org>2016-01-13 19:45:05 +0000
commitbd25521857c9d1b2983f3203588e7560b53aa165 (patch)
treec57449b465665095962646be793a514ec7ce6d0c /src/java/org
parent11bee1ebf94271ba18b7ba36e95e317b42ee3864 (diff)
downloadpoi-bd25521857c9d1b2983f3203588e7560b53aa165.tar.gz
poi-bd25521857c9d1b2983f3203588e7560b53aa165.zip
Eclipse warnings, helper unit-test, improve information provided in Exceptions, do not swallow inner stacktraces, ...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1724486 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r--src/java/org/apache/poi/ss/format/CellFormat.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/ss/format/CellFormat.java b/src/java/org/apache/poi/ss/format/CellFormat.java
index 40cca8c3c6..d3a7f8df43 100644
--- a/src/java/org/apache/poi/ss/format/CellFormat.java
+++ b/src/java/org/apache/poi/ss/format/CellFormat.java
@@ -235,7 +235,7 @@ public class CellFormat {
if (DateUtil.isValidExcelDate(numericValue)) {
return getApplicableFormatPart(numericValue).apply(value);
} else {
- throw new IllegalArgumentException("value not a valid Excel date");
+ throw new IllegalArgumentException("value " + numericValue + " of date " + value + " is not a valid Excel date");
}
} else {
return textFmt.apply(value);