Selaa lähdekoodia

2003-08-11 Andreas Nahr <[email protected]>

	* XsltCompileException.cs: Fixed/ Implemented rest
	* XsltException.cs: Added internal constructor

svn path=/trunk/mcs/; revision=17251
Andreas N 22 vuotta sitten
vanhempi
sitoutus
e02ad202ce

+ 5 - 0
mcs/class/System.XML/System.Xml.Xsl/ChangeLog

@@ -1,3 +1,8 @@
+2003-08-11  Andreas Nahr <[email protected]>
+
+	* XsltCompileException.cs: Fixed/ Implemented rest
+	* XsltException.cs: Added internal constructor
+
 2003-08-04 Ben Maurer  <[email protected]>
 
 	* ManagedXslTransform.cs: use the resolver given.

+ 11 - 10
mcs/class/System.XML/System.Xml.Xsl/XsltCompileException.cs

@@ -1,7 +1,13 @@
-// System.Xml.Xsl.XsltCompileException
-//
-// Author: Tim Coleman <[email protected]>
-// (C) Copyright 2002 Tim Coleman
+//
+// System.Xml.Xsl.XsltCompileException.cs
+//
+// Authors:
+//  Tim Coleman ([email protected])
+//  Andreas Nahr ([email protected])
+//
+// (C) Copyright 2002 Tim Coleman
+// (C) 2003 Andreas Nahr
+//
 
 using System;
 using System.Runtime.Serialization;
@@ -19,21 +25,16 @@ namespace System.Xml.Xsl
 
 		#region Constructors
 
-		[MonoTODO]
 		protected XsltCompileException (SerializationInfo info, StreamingContext context )
 			: base (info, context)
 		{
 		}
 
-		[MonoTODO]
-		// I don't think this base() call is right, but what
-		// should the message be for XsltException?
 		public XsltCompileException (Exception inner, String sourceUri, int lineNumber, int linePosition)
-			: base (sourceUri, inner)
+			: base (Locale.GetText ("XSLT compile error"), inner, lineNumber, linePosition, sourceUri)
 		{
 		}
 
-
 		#endregion
 
 		#region Properties

+ 18 - 4
mcs/class/System.XML/System.Xml.Xsl/XsltException.cs

@@ -1,7 +1,13 @@
-// System.Xml.Xsl.XsltException
-//
-// Author: Tim Coleman <[email protected]>
-// (C) Copyright 2002 Tim Coleman
+//
+// System.Xml.Xsl.XsltException.cs
+//
+// Authors:
+//  Tim Coleman ([email protected])
+//  Andreas Nahr ([email protected])
+//
+// (C) Copyright 2002 Tim Coleman
+// (C) 2003 Andreas Nahr
+//
 
 using System;
 using System.Runtime.Serialization;
@@ -33,6 +39,14 @@ namespace System.Xml.Xsl
 			lineNumber = info.GetInt32 ("lineNumber");
 			linePosition = info.GetInt32 ("linePosition");
 			sourceUri = info.GetString ("sourceUri");
+		}
+
+		internal XsltException (string message, Exception innerException, int lineNumber, int linePosition, string sourceUri)
+			: base (message, innerException)
+		{
+			this.lineNumber = lineNumber;
+			this.linePosition = linePosition;
+			this.sourceUri = sourceUri;
 		}
 
 		#endregion