Merge pull request #2922 from akoeplinger/fix-tvos
[mono.git] / mcs / class / Mono.Xml.Ext / Mono.Xml.XPath2 / XmlQueryCompileException.cs
1 //\r
2 // System.Xml.Query.XmlQueryCompileException\r
3 //\r
4 // Author:\r
5 //   Tim Coleman (tim@timcoleman.com)\r
6 //   Atsushi Enomoto (atsushi@ximian.com)\r
7 //\r
8 // Copyright (C) Tim Coleman, 2003\r
9 // Copyright (C) Novell Inc., 2004\r
10 //\r
11 \r
12 //\r
13 // Permission is hereby granted, free of charge, to any person obtaining\r
14 // a copy of this software and associated documentation files (the\r
15 // "Software"), to deal in the Software without restriction, including\r
16 // without limitation the rights to use, copy, modify, merge, publish,\r
17 // distribute, sublicense, and/or sell copies of the Software, and to\r
18 // permit persons to whom the Software is furnished to do so, subject to\r
19 // the following conditions:\r
20 // \r
21 // The above copyright notice and this permission notice shall be\r
22 // included in all copies or substantial portions of the Software.\r
23 // \r
24 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
25 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
26 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
27 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
28 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
29 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
30 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
31 //\r
32 \r
33 \r
34 using System;\r
35 using System.Runtime.Serialization;\r
36 \r
37 namespace System.Xml.Query\r
38 {\r
39         [Serializable]\r
40         public class XmlQueryCompileException : XmlQueryException\r
41         {\r
42                 #region Constructors\r
43 \r
44                 protected XmlQueryCompileException (SerializationInfo info, StreamingContext context)\r
45                         : base (info, context)\r
46                 {\r
47                 }\r
48 \r
49                 public XmlQueryCompileException ()\r
50                         : base ("An XML Query Compile Exception has occurred.")\r
51                 {\r
52                 }\r
53 \r
54                 public XmlQueryCompileException (string res)\r
55                         : this (res, null, null, null)\r
56                 {\r
57                 }\r
58 \r
59                 public XmlQueryCompileException (string resource, Exception exception)\r
60                         : this (resource, null, null, exception)\r
61                 {\r
62                 }\r
63 \r
64                 internal XmlQueryCompileException (string message, IXmlLineInfo li, string sourceUri, Exception innerException)\r
65                         : base (message, li, sourceUri, innerException)\r
66                 {\r
67                 }\r
68 \r
69                 #endregion // Constructors\r
70         }\r
71 }\r
72 \r