2002-03-11 Duncan Mak <duncan@ximian.com>
[mono.git] / mcs / class / System.XML / System.Xml / XmlException.cs
1 //
2 // XmlException.cs
3 //
4 // Author:
5 //   Jason Diamond (jason@injektilo.org)
6 //
7 // (C) 2002 Jason Diamond  http://injektilo.org/
8 //
9
10 using System;
11 using System.Runtime.Serialization;
12
13 namespace System.Xml
14 {
15         public class XmlException : SystemException
16         {
17                 #region Fields
18
19                 int lineNumber;
20                 int linePosition;
21
22                 #endregion
23
24                 #region Constructors
25
26                 public XmlException (string message, Exception innerException) 
27                         : base (message, innerException)
28                 {
29                 }
30
31                 [MonoTODO]
32                 protected XmlException (SerializationInfo info, StreamingContext context)
33                 {
34                         throw new NotImplementedException ();
35                 }
36
37                 internal XmlException (string message) : base (message)
38                 {
39                 }
40
41                 internal XmlException (string message, int lineNumber, int linePosition) : base (message)
42                 {
43                         this.lineNumber = lineNumber;
44                         this.linePosition = linePosition;
45                 }
46
47                 #endregion
48
49                 #region Properties
50
51                 public int LineNumber 
52                 {
53                         get { return lineNumber; }
54                 }
55
56                 public int LinePosition 
57                 {
58                         get { return linePosition; }
59                 }
60
61                 #endregion
62         }
63 }