From bd25521857c9d1b2983f3203588e7560b53aa165 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Wed, 13 Jan 2016 19:45:05 +0000 Subject: 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 --- src/java/org/apache/poi/ss/format/CellFormat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/java/org') 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); -- cgit v1.2.3