retag
[mcs.git] / nunit24 / ClientUtilities / util / ProjectFormatException.cs
blob964f8edfa859ee7c36d62952f84628b05e12fe71
1 // ****************************************************************
2 // This is free software licensed under the NUnit license. You
3 // may obtain a copy of the license as well as information regarding
4 // copyright ownership at http://nunit.org/?p=license&r=2.4.
5 // ****************************************************************
7 using System;
9 namespace NUnit.Util
11 /// <summary>
12 /// Exception raised when loading a project file with
13 /// an invalid format.
14 /// </summary>
15 public class ProjectFormatException : ApplicationException
17 #region Instance Variables
19 private int lineNumber;
21 private int linePosition;
23 #endregion
25 #region Constructors
27 public ProjectFormatException() : base() {}
29 public ProjectFormatException( string message )
30 : base( message ) {}
32 public ProjectFormatException( string message, Exception inner )
33 : base( message, inner ) {}
35 public ProjectFormatException( string message, int lineNumber, int linePosition )
36 : base( message )
38 this.lineNumber = lineNumber;
39 this.linePosition = linePosition;
42 #endregion
44 #region Properties
46 public int LineNumber
48 get { return lineNumber; }
51 public int LinePosition
53 get { return linePosition; }
56 #endregion