-
Notifications
You must be signed in to change notification settings - Fork 934
/
Copy pathAssertionFailure.cs
47 lines (43 loc) · 1.3 KB
/
AssertionFailure.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Runtime.Serialization;
using log4net;
namespace NHibernate
{
/// <summary>
/// Indicates failure of an assertion: a possible bug in NHibernate
/// </summary>
[ Serializable ]
public class AssertionFailure : ApplicationException
{
/// <summary></summary>
public AssertionFailure() : base( String.Empty )
{
LogManager.GetLogger( typeof( AssertionFailure ) ).Error( "An AssertionFailure occured - this may indicate a bug in NHibernate" );
}
/// <summary>
///
/// </summary>
/// <param name="message"></param>
public AssertionFailure( string message ) : base( message )
{
LogManager.GetLogger( typeof( AssertionFailure ) ).Error( "An AssertionFailure occured - this may indicate a bug in NHibernate", this );
}
/// <summary>
///
/// </summary>
/// <param name="message"></param>
/// <param name="e"></param>
public AssertionFailure( string message, Exception e ) : base( message, e )
{
LogManager.GetLogger( typeof( AssertionFailure ) ).Error( "An AssertionFailure occured - this may indicate a bug in NHibernate", e );
}
/// <summary>
///
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected AssertionFailure( SerializationInfo info, StreamingContext context ) : base( info, context )
{
}
}
}