]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for #2228 - Cannot get multiple causes from InvalidValueException
authorArtur Signell <artur.signell@itmill.com>
Mon, 10 May 2010 15:35:35 +0000 (15:35 +0000)
committerArtur Signell <artur.signell@itmill.com>
Mon, 10 May 2010 15:35:35 +0000 (15:35 +0000)
svn changeset:13126/svn branch:6.4

src/com/vaadin/data/Validator.java

index 239d66c3f3b87858585fa6cadc8f135deeab78f4..21a9da9f9721ce891b859d7182a2c7d0a5104cca 100644 (file)
@@ -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;
+        }
+
     }
 
     /**