click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r962369 - /click/trunk/click/extras/src/org/apache/click/extras/control/LinkDecorator.java
Date Fri, 09 Jul 2010 00:11:51 GMT
Author: sabob
Date: Fri Jul  9 00:11:51 2010
New Revision: 962369

URL: http://svn.apache.org/viewvc?rev=962369&view=rev
Log:
clearer exception message

Modified:
    click/trunk/click/extras/src/org/apache/click/extras/control/LinkDecorator.java

Modified: click/trunk/click/extras/src/org/apache/click/extras/control/LinkDecorator.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/control/LinkDecorator.java?rev=962369&r1=962368&r2=962369&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/control/LinkDecorator.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/control/LinkDecorator.java Fri Jul
 9 00:11:51 2010
@@ -443,7 +443,8 @@ public class LinkDecorator implements De
                     if (control instanceof AbstractLink) {
                         linksArray[i] = (AbstractLink) control;
                     } else {
-                        String msg = "Unsupported control type: " + object.getClass();
+                        String msg = "Unsupported control type: " + object.getClass()
+                            + ". Must be of type AbstractLink";
                         throw new RuntimeException(msg);
                     }
                 }
@@ -455,13 +456,15 @@ public class LinkDecorator implements De
                     if (control instanceof ActionButton) {
                         buttonsArray[i] = (ActionButton) control;
                     } else {
-                        String msg = "Unsupported control type: " + object.getClass();
+                        String msg = "Unsupported control type: " + object.getClass()
+                            + ". Must be of type ActionButton";
                         throw new RuntimeException(msg);
                     }
                 }
 
             } else {
-                String msg = "Unsupported control type: " + object.getClass();
+                String msg = "Unsupported control type: " + object.getClass()
+                    + ". Must be of type AbstractLink or ActionButton";
                 throw new RuntimeException(msg);
             }
         }



Mime
View raw message