Author: toshok
Date: 2006-11-01 00:23:18 -0500 (Wed, 01 Nov 2006)
New Revision: 67208

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollBar.cs
Log:
2006-11-01  Chris Toshok  <[EMAIL PROTECTED]>

        * ScrollBar.cs: throw ArgumentException instead of Exception in
        LargeChange/SmallChange setters.  fixes unit tests.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-01 05:06:06 UTC (rev 67207)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-01 05:23:18 UTC (rev 67208)
@@ -1,3 +1,8 @@
+2006-11-01  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * ScrollBar.cs: throw ArgumentException instead of Exception in
+       LargeChange/SmallChange setters.  fixes unit tests.
+
 2006-10-31     Andreia Gaita <[EMAIL PROTECTED]>
 
        * ContainerControl.cs: reverted rev.67183 (which was itself

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollBar.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollBar.cs     
2006-11-01 05:06:06 UTC (rev 67207)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollBar.cs     
2006-11-01 05:23:18 UTC (rev 67208)
@@ -323,7 +323,7 @@
                        }
                        set {
                                if (value < 0)
-                                       throw new Exception( 
string.Format("Value '{0}' must be greater than or equal to 0.", value));
+                                       throw new ArgumentException( 
string.Format("Value '{0}' must be greater than or equal to 0.", value));
 
                                if (large_change != value) {
                                        large_change = value;
@@ -428,7 +428,7 @@
                        get { return small_change; }
                        set {
                                if ( value < 0 )
-                                       throw new Exception( 
string.Format("Value '{0}' must be greater than or equal to 0.", value));
+                                       throw new ArgumentException( 
string.Format("Value '{0}' must be greater than or equal to 0.", value));
 
                                if (small_change != value) {
                                        small_change = value;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to