2 // System.Xml.Xsl.XsltCompileException.cs
\r
5 // Tim Coleman (tim@timcoleman.com)
\r
6 // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
\r
8 // (C) Copyright 2002 Tim Coleman
\r
9 // (C) 2003 Andreas Nahr
\r
10 // Copyright (C) 2005 Novell, Inc (http://www.novell.com)
\r
12 // Permission is hereby granted, free of charge, to any person obtaining
\r
13 // a copy of this software and associated documentation files (the
\r
14 // "Software"), to deal in the Software without restriction, including
\r
15 // without limitation the rights to use, copy, modify, merge, publish,
\r
16 // distribute, sublicense, and/or sell copies of the Software, and to
\r
17 // permit persons to whom the Software is furnished to do so, subject to
\r
18 // the following conditions:
\r
20 // The above copyright notice and this permission notice shall be
\r
21 // included in all copies or substantial portions of the Software.
\r
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\r
24 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\r
25 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
\r
26 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
\r
27 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
\r
28 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
\r
29 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\r
32 using System.Runtime.Serialization;
\r
33 using System.Xml.XPath;
\r
34 using System.Security.Permissions;
\r
36 namespace System.Xml.Xsl
\r
39 public class XsltCompileException : XsltException
\r
41 #region Constructors
\r
44 public XsltCompileException ()
\r
48 public XsltCompileException (string message)
\r
53 public XsltCompileException (string message, Exception innerException)
\r
54 : base (message, innerException)
\r
59 protected XsltCompileException (SerializationInfo info, StreamingContext context )
\r
60 : base (info, context)
\r
64 public XsltCompileException (Exception inner, String sourceUri, int lineNumber, int linePosition)
\r
66 : base (lineNumber != 0 ? "{0} at {1}({2},{3}). See InnerException for details." : "{0}.",
\r
67 "XSLT compile error", inner, lineNumber, linePosition, sourceUri)
\r
69 : base ("{0}{1}({2},{3}) :\n", string.Empty, inner, lineNumber, linePosition, sourceUri)
\r
74 internal XsltCompileException (string message, Exception innerException, XPathNavigator nav)
\r
75 : base (message, innerException, nav)
\r
84 public override string Message {
\r
85 get { return base.Message; }
\r
93 [SecurityPermission (SecurityAction.Demand, SerializationFormatter = true)]
\r
94 public override void GetObjectData (SerializationInfo info, StreamingContext context)
\r
96 base.GetObjectData (info, context);
\r