[Mono-bugs] [Bug 79488][Nor] Changed - Bad exception rendering with DataRows

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Sep 25 10:02:15 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by informatique.internet at fiducial.fr.

http://bugzilla.ximian.com/show_bug.cgi?id=79488

--- shadow/79488	2006-09-25 09:46:13.000000000 -0400
+++ shadow/79488.tmp.32569	2006-09-25 10:02:15.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 79488
 Product: Mono: Class Libraries
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Sys.Data
 AssignedTo: tsenganal at novell.com                            
 ReportedBy: informatique.internet at fiducial.fr               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -77,6 +77,45 @@
 always
 
 Additional Information:
 It can be useful to have these information in mono too (for debugging purpose)
 
 Thanks
+
+------- Additional Comments From informatique.internet at fiducial.fr  2006-09-25 10:02 -------
+proposed patch:
+
+Index: class/System.Data/System.Data/DataRow.cs
+===================================================================
+--- class/System.Data/System.Data/DataRow.cs    (révision 65874)
++++ class/System.Data/System.Data/DataRow.cs    (copie de travail)
+@@ -142,7 +142,9 @@
+                        set {
+                                int columnIndex =
+_table.Columns.IndexOf (columnName);
+                                if (columnIndex == -1)
+-                                       throw new
+IndexOutOfRangeException ();
++                               {
++                                       throw new
+ArgumentException("The column "+columnName+" does not belong to the
+table : "+_table.TableName);
++                               }
+                                this[columnIndex] = value;
+                        }
+                }
+@@ -202,7 +204,9 @@
+                        get {
+                                int columnIndex =
+_table.Columns.IndexOf (columnName);
+                                if (columnIndex == -1)
+-                                       throw new
+IndexOutOfRangeException ();
++                               {
++                                               throw new
+ArgumentException("The column "+columnName+" does not belong to the
+table : "+_table.TableName);
++                               }
+                                return this[columnIndex, version];
+                        }
+                }
+


More information about the mono-bugs mailing list