From c287ffc8c961eab2bcb09d544c4022783aea55b5 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Thu, 11 Aug 2011 11:25:05 +0000 Subject: [PATCH] #7384 IndexedContainerProperty.setValue(Object) eats java.lang.Exception svn changeset:20298/svn branch:6.6 --- src/com/vaadin/data/Property.java | 13 +++++++++++++ src/com/vaadin/data/util/IndexedContainer.java | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/com/vaadin/data/Property.java b/src/com/vaadin/data/Property.java index 5c1347bfa8..4592fa3351 100644 --- a/src/com/vaadin/data/Property.java +++ b/src/com/vaadin/data/Property.java @@ -189,6 +189,19 @@ public interface Property extends Serializable { public ConversionException(Throwable cause) { super(cause); } + + /** + * Constructs a new ConversionException with the specified + * detail message and cause. + * + * @param message + * the detail message + * @param cause + * The cause of the the conversion failure + */ + public ConversionException(String message, Throwable cause) { + super(message, cause); + } } /** diff --git a/src/com/vaadin/data/util/IndexedContainer.java b/src/com/vaadin/data/util/IndexedContainer.java index 1ddc830e4e..7fbb1e9128 100644 --- a/src/com/vaadin/data/util/IndexedContainer.java +++ b/src/com/vaadin/data/util/IndexedContainer.java @@ -879,7 +879,7 @@ public class IndexedContainer extends throw new Property.ConversionException( "Conversion for value '" + newValue + "' of class " + newValue.getClass().getName() + " to " - + getType().getName() + " failed"); + + getType().getName() + " failed", e); } } -- 2.39.5