dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] pnetlib ChangeLog System.Drawing/Region.cs Syst...


From: Deryk Robosson
Subject: [dotgnu-pnet-commits] pnetlib ChangeLog System.Drawing/Region.cs Syst...
Date: Mon, 05 Jun 2006 11:48:24 +0000

CVSROOT:        /cvsroot/dotgnu-pnet
Module name:    pnetlib
Changes by:     Deryk Robosson <drobosson>      06/06/05 11:48:24

Modified files:
        .              : ChangeLog 
        System.Drawing : Region.cs 
        System.Drawing/Drawing2D: Matrix.cs 

Log message:
        Add descriptive message to ArgumentNullException calls

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2417&r2=1.2418
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System.Drawing/Region.cs?cvsroot=dotgnu-pnet&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System.Drawing/Drawing2D/Matrix.cs?cvsroot=dotgnu-pnet&r1=1.10&r2=1.11

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2417
retrieving revision 1.2418
diff -u -b -r1.2417 -r1.2418
--- ChangeLog   5 Jun 2006 08:50:29 -0000       1.2417
+++ ChangeLog   5 Jun 2006 11:48:24 -0000       1.2418
@@ -21,6 +21,9 @@
        * System.Windows.Forms/Themes/DefaultThemePainter.cs: validate
        arguments of public methods.
 
+       * System.Drawing/Region.cs, System.Drawing/Drawing2D/Matrix.cs:
+       Complete descriptive message for ArgumentNullException.
+
 2006-06-02  Heiko Weiss  <address@hidden>
 
        * System.Windows.Forms/Control.cs, 

Index: System.Drawing/Region.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Region.cs,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- System.Drawing/Region.cs    18 Aug 2005 18:29:37 -0000      1.11
+++ System.Drawing/Region.cs    5 Jun 2006 11:48:24 -0000       1.12
@@ -115,7 +115,7 @@
        {
                if(path == null)
                {
-                       throw new ArgumentNullException("path");
+                       throw new ArgumentNullException("path", "Argument 
cannot be null");
                }
                rgnData = new RegionData( path );
        }
@@ -153,7 +153,7 @@
        {
                if(otherRgnData == null)
                {
-                       throw new ArgumentNullException("rgnData");
+                       throw new ArgumentNullException("rgnData", "Argument 
cannot be null");
                }
                Region r = otherRgnData.ConstructRegion ( otherRgnData ) ;
                this.rects = r.rects ;
@@ -264,11 +264,11 @@
        {
                if(region == null)
                {
-                       throw new ArgumentNullException("region");
+                       throw new ArgumentNullException("region", "Argument 
cannot be null");
                }
                if(g == null)
                {
-                       throw new ArgumentNullException("g");
+                       throw new ArgumentNullException("g", "Argument cannot 
be null");
                }
 
                if (rects.Length == 0)

Index: System.Drawing/Drawing2D/Matrix.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Drawing2D/Matrix.cs,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- System.Drawing/Drawing2D/Matrix.cs  4 May 2006 09:44:26 -0000       1.10
+++ System.Drawing/Drawing2D/Matrix.cs  5 Jun 2006 11:48:24 -0000       1.11
@@ -69,7 +69,7 @@
                        {
                                 // check if plgpts defines a polygon with 3 
points
                                 if ( (plgpts == null) || (plgpts.Length != 3) )
-                                        throw new ArgumentException("plgpts");
+                                        throw new ArgumentException("plgpts", 
"Argument cannot be null");
                                 // check if rect is degenerated
                                 if ( (rect.Width == 0.0f) || (rect.Height == 
0.0f) )
                                         throw new 
ArgumentOutOfRangeException("rect");




reply via email to

[Prev in Thread] Current Thread [Next in Thread]