~nunit-core/nunitv2/2.5

« back to all changes in this revision

Viewing changes to src/NUnitFramework/framework/AssertionException.cs

  • Committer: jnewkirk
  • Date: 2002-07-10 20:05:24 UTC
  • Revision ID: vcs-imports@canonical.com-20020710200524-z33q2om2qvsgs6kg
initialĀ load

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
// Copyright (C) 2002. James W. Newkirk, Michael C. Two, Alexei A. Vorontsov. All Rights Reserved.
 
3
//
 
4
namespace Nunit.Framework 
 
5
{
 
6
        using System;
 
7
        using System.Runtime.Serialization;
 
8
        
 
9
        /// <summary>
 
10
        /// Thrown when an assertion failed.
 
11
        /// </summary>
 
12
        /// 
 
13
        [Serializable]
 
14
        public class AssertionException : ApplicationException
 
15
        {
 
16
                /// <summary>
 
17
                /// 
 
18
                /// </summary>
 
19
                /// <param name="message"></param>
 
20
                public AssertionException (string message) : base(message) 
 
21
                {}
 
22
 
 
23
                /// <summary>
 
24
                /// Standard constructor
 
25
                /// </summary>
 
26
                /// <param name="message">The error message that explains 
 
27
                /// the reason for the exception</param>
 
28
                /// <param name="inner">The exception that caused the 
 
29
                /// current exception</param>
 
30
                public AssertionException(string message, Exception inner) :
 
31
                        base(message, inner) 
 
32
                {}
 
33
 
 
34
                /// <summary>
 
35
                /// Serialization Constructor
 
36
                /// </summary>
 
37
                protected AssertionException(SerializationInfo info, 
 
38
                        StreamingContext context) : base(info,context)
 
39
                {}
 
40
 
 
41
        }
 
42
}