Bläddra i källkod

2004-01-11 Atsushi Enomoto <[email protected]>

	* XmlException.cs : Fixed incorrect .ctor signature.
	* XmlParserInput.cs : Fixed in sync with the above fix.

svn path=/trunk/mcs/; revision=21936
Atsushi Eno 22 år sedan
förälder
incheckning
9bf15946b2

+ 3 - 3
mcs/class/System.XML/System.Xml/XmlException.cs

@@ -61,11 +61,11 @@ namespace System.Xml
 		}
 		
 #if NET_1_0
-		internal XmlException (string message, int lineNumber, int linePosition)
+		internal XmlException (string message, Exception innerException, int lineNumber, int linePosition)
 #else
-		public XmlException (string message, int lineNumber, int linePosition)
+		public XmlException (string message, Exception innerException, int lineNumber, int linePosition)
 #endif
-			: base (message)
+			: base (message, innerException)
 		{
 			this.lineNumber = lineNumber;
 			this.linePosition = linePosition;

+ 1 - 1
mcs/class/System.XML/System.Xml/XmlParserInput.cs

@@ -192,7 +192,7 @@ namespace Mono.Xml.Native
 
 		private XmlException ReaderError (string message)
 		{
-			return new XmlException (message, line, column);
+			return new XmlException (message, null, line, column);
 		}
 		#endregion
 	}