From 7af1ae49047cdab1a92e0249a2724f6411c946ee Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 10 May 2010 15:35:35 +0000 Subject: [PATCH] Fix for #2228 - Cannot get multiple causes from InvalidValueException svn changeset:13126/svn branch:6.4 --- src/com/vaadin/data/Validator.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/com/vaadin/data/Validator.java b/src/com/vaadin/data/Validator.java index 239d66c3f3..21a9da9f97 100644 --- a/src/com/vaadin/data/Validator.java +++ b/src/com/vaadin/data/Validator.java @@ -222,6 +222,18 @@ public interface Validator extends Serializable { "InvalidValueException cannot have a debug id"); } + /** + * Returns the {@code InvalidValueExceptions} that caused this + * exception. + * + * @return An array containing the {@code InvalidValueExceptions} that + * caused this exception. Returns an empty array if this + * exception was not caused by other exceptions. + */ + public InvalidValueException[] getCauses() { + return causes; + } + } /** -- 2.39.5