PageRenderTime 24ms CodeModel.GetById 15ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/src/NUnit/core/NUnitException.cs

#
C# | 50 lines | 18 code | 7 blank | 25 comment | 0 complexity | 5df679047a0f4414da194cd689d521ae 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
 7namespace NUnit.Core 
 8{
 9	using System;
10	using System.Runtime.Serialization;
11  
12	/// <summary>
13	/// Thrown when an assertion failed. Here to preserve the inner
14	/// exception and hence its stack trace.
15	/// </summary>
16	/// 
17	[Serializable]
18	public class NUnitException : ApplicationException 
19	{
20		public NUnitException () : base() 
21		{} 
22
23		/// <summary>
24		/// Standard constructor
25		/// </summary>
26		/// <param name="message">The error message that explains 
27		/// the reason for the exception</param>
28		public NUnitException(string message) : base (message)
29		{}
30
31		/// <summary>
32		/// Standard constructor
33		/// </summary>
34		/// <param name="message">The error message that explains 
35		/// the reason for the exception</param>
36		/// <param name="inner">The exception that caused the 
37		/// current exception</param>
38		public NUnitException(string message, Exception inner) :
39			base(message, inner) 
40		{}
41
42		/// <summary>
43		/// Serialization Constructor
44		/// </summary>
45		protected NUnitException(SerializationInfo info, 
46			StreamingContext context) : base(info,context){}
47
48
49	}
50}