// **************************************************************** // 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.Core { using System; using System.Runtime.Serialization; /// /// Thrown when an assertion failed. Here to preserve the inner /// exception and hence its stack trace. /// /// [Serializable] public class NUnitException : ApplicationException { public NUnitException () : base() {} /// /// Standard constructor /// /// The error message that explains /// the reason for the exception public NUnitException(string message) : base (message) {} /// /// Standard constructor /// /// The error message that explains /// the reason for the exception /// The exception that caused the /// current exception public NUnitException(string message, Exception inner) : base(message, inner) {} /// /// Serialization Constructor /// protected NUnitException(SerializationInfo info, StreamingContext context) : base(info,context){} } }