PageRenderTime 34ms CodeModel.GetById 25ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/src/NUnit/util/ProjectFormatException.cs

#
C# | 58 lines | 34 code | 15 blank | 9 comment | 0 complexity | e004be362c4e35dca7f42202eae13aa5 MD5 | raw file
 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.
 5// ****************************************************************
 6
 7using System;
 8
 9namespace NUnit.Util
10{
11	/// <summary>
12	/// Exception raised when loading a project file with
13	/// an invalid format.
14	/// </summary>
15	public class ProjectFormatException : ApplicationException
16	{
17		#region Instance Variables
18
19		private int lineNumber;
20
21		private int linePosition;
22
23		#endregion
24
25		#region Constructors
26
27		public ProjectFormatException() : base() {}
28
29		public ProjectFormatException( string message )
30			: base( message ) {}
31
32		public ProjectFormatException( string message, Exception inner )
33			: base( message, inner ) {}
34
35		public ProjectFormatException( string message, int lineNumber, int linePosition )
36			: base( message )
37		{
38			this.lineNumber = lineNumber;
39			this.linePosition = linePosition;
40		}
41
42		#endregion
43
44		#region Properties
45
46		public int LineNumber
47		{
48			get { return lineNumber; }
49		}
50
51		public int LinePosition
52		{
53			get { return linePosition; }
54		}
55
56		#endregion
57	}
58}