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
7 namespace NUnit.Framework
\r
10 using System.Runtime.Serialization;
\r
13 /// Thrown when an assertion failed.
\r
17 public class AssertionException : System.Exception
\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
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
33 /// Serialization Constructor
\r
35 protected AssertionException(SerializationInfo info,
\r
36 StreamingContext context) : base(info,context)
\r