click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r954842 - /click/trunk/click/framework/src/org/apache/click/control/Select.java
Date Tue, 15 Jun 2010 11:51:25 GMT
Author: sabob
Date: Tue Jun 15 11:51:25 2010
New Revision: 954842

URL: http://svn.apache.org/viewvc?rev=954842&view=rev
Log:
imprved error handling

Modified:
    click/trunk/click/framework/src/org/apache/click/control/Select.java

Modified: click/trunk/click/framework/src/org/apache/click/control/Select.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/control/Select.java?rev=954842&r1=954841&r2=954842&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/control/Select.java (original)
+++ click/trunk/click/framework/src/org/apache/click/control/Select.java Tue Jun 15 11:51:25
2010
@@ -478,9 +478,9 @@ public class Select extends Field {
             optionList.add(new Option(option.toString()));
 
         } else {
-            String message = "Unsupported options class "
-                + option.getClass().getName() + ". Please use method "
-                + "Select.addAll(Collection, String, String) instead.";
+            String message = "Unsupported Option class "
+                + option.getClass().getName() + ". Must be one of "
+                + "Option, OptionGroup, String, Number or Boolean";
             throw new IllegalArgumentException(message);
         }
 



Mime
View raw message