Author: kostat
Date: 2007-05-01 02:43:56 -0400 (Tue, 01 May 2007)
New Revision: 76517

Modified:
   branches/mainsoft/gh20/mcs/class/System.XML/System.Xml/XmlNode.cs
Log:
correct exception type

Modified: branches/mainsoft/gh20/mcs/class/System.XML/System.Xml/XmlNode.cs
===================================================================
--- branches/mainsoft/gh20/mcs/class/System.XML/System.Xml/XmlNode.cs   
2007-05-01 06:43:32 UTC (rev 76516)
+++ branches/mainsoft/gh20/mcs/class/System.XML/System.Xml/XmlNode.cs   
2007-05-01 06:43:56 UTC (rev 76517)
@@ -786,7 +786,7 @@
                                throw new ArgumentException ("The node to be 
removed is not a child of this node.");
                        
                        if (newChild == this || IsAncestor (newChild))
-                               throw new ArgumentException("Cannot insert a 
node or any ancestor of that node as a child of itself.");
+                               throw new InvalidOperationException("Cannot 
insert a node or any ancestor of that node as a child of itself.");
                        
                        XmlNode next = oldChild.NextSibling;
                        RemoveChild (oldChild);

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

Reply via email to