Merge branch 'master' of git://github.com/mono/mono
[mono.git] / mcs / nunit24 / NUnitFramework / framework / AssertionException.cs
1 // ****************************************************************\r
2 // This is free software licensed under the NUnit license. You\r
3 // may obtain a copy of the license as well as information regarding\r
4 // copyright ownership at http://nunit.org/?p=license&r=2.4.\r
5 // ****************************************************************\r
6 \r
7 namespace NUnit.Framework \r
8 {\r
9         using System;\r
10         using System.Runtime.Serialization;\r
11         \r
12         /// <summary>\r
13         /// Thrown when an assertion failed.\r
14         /// </summary>\r
15         /// \r
16         [Serializable]\r
17         public class AssertionException : System.Exception\r
18         {\r
19                 /// <param name="message">The error message that explains \r
20                 /// the reason for the exception</param>\r
21                 public AssertionException (string message) : base(message) \r
22                 {}\r
23 \r
24                 /// <param name="message">The error message that explains \r
25                 /// the reason for the exception</param>\r
26                 /// <param name="inner">The exception that caused the \r
27                 /// current exception</param>\r
28                 public AssertionException(string message, Exception inner) :\r
29                         base(message, inner) \r
30                 {}\r
31 \r
32                 /// <summary>\r
33                 /// Serialization Constructor\r
34                 /// </summary>\r
35                 protected AssertionException(SerializationInfo info, \r
36                         StreamingContext context) : base(info,context)\r
37                 {}\r
38 \r
39         }\r
40 }\r