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/?p=license&r=2.4. 5 // **************************************************************** 6 7 namespace NUnit.Framework 8 { 9 using System; 10 using System.Runtime.Serialization; 11 12 /// <summary> 13 /// Thrown when an assertion failed. 14 /// </summary> 15 [Serializable] 16 public class IgnoreException : System.Exception 17 { 18 /// <param name="message"></param> IgnoreException(string message)19 public IgnoreException (string message) : base(message) 20 {} 21 22 /// <param name="message">The error message that explains 23 /// the reason for the exception</param> 24 /// <param name="inner">The exception that caused the 25 /// current exception</param> IgnoreException(string message, Exception inner)26 public IgnoreException(string message, Exception inner) : 27 base(message, inner) 28 {} 29 30 /// <summary> 31 /// Serialization Constructor 32 /// </summary> IgnoreException(SerializationInfo info, StreamingContext context)33 protected IgnoreException(SerializationInfo info, 34 StreamingContext context) : base(info,context) 35 {} 36 37 } 38 } 39