// **************************************************************** // This is free software licensed under the NUnit license. You // may obtain a copy of the license as well as information regarding // copyright ownership at http://nunit.org/?p=license&r=2.4. // **************************************************************** namespace NUnit.Framework { using System; using System.Runtime.Serialization; /// /// Thrown when an assertion failed. /// /// [Serializable] public class AssertionException : System.Exception { /// The error message that explains /// the reason for the exception public AssertionException (string message) : base(message) {} /// The error message that explains /// the reason for the exception /// The exception that caused the /// current exception public AssertionException(string message, Exception inner) : base(message, inner) {} /// /// Serialization Constructor /// protected AssertionException(SerializationInfo info, StreamingContext context) : base(info,context) {} } }