From: Artur Signell Date: Mon, 10 May 2010 15:35:35 +0000 (+0000) Subject: Fix for #2228 - Cannot get multiple causes from InvalidValueException X-Git-Tag: 6.7.0.beta1~1676 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7af1ae49047cdab1a92e0249a2724f6411c946ee;p=vaadin-framework.git Fix for #2228 - Cannot get multiple causes from InvalidValueException svn changeset:13126/svn branch:6.4 --- 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; + } + } /**