@@ -10,13 +10,14 @@ namespace NHibernate
10
10
[ Serializable ]
11
11
public class AssertionFailure : ApplicationException
12
12
{
13
+ private const string DefaultMessage = "An AssertionFailure occurred - this may indicate a bug in NHibernate or in your custom types." ;
14
+
13
15
/// <summary>
14
16
/// Initializes a new instance of the <see cref="AssertionFailure"/> class.
15
17
/// </summary>
16
18
public AssertionFailure ( ) : base ( String . Empty )
17
19
{
18
- LogManager . GetLogger ( typeof ( AssertionFailure ) ) . Error (
19
- "An AssertionFailure occurred - this may indicate a bug in NHibernate" ) ;
20
+ LogManager . GetLogger ( typeof ( AssertionFailure ) ) . Error ( DefaultMessage ) ;
20
21
}
21
22
22
23
/// <summary>
@@ -25,8 +26,7 @@ public AssertionFailure() : base(String.Empty)
25
26
/// <param name="message">The message that describes the error. </param>
26
27
public AssertionFailure ( string message ) : base ( message )
27
28
{
28
- LogManager . GetLogger ( typeof ( AssertionFailure ) ) . Error (
29
- "An AssertionFailure occurred - this may indicate a bug in NHibernate" , this ) ;
29
+ LogManager . GetLogger ( typeof ( AssertionFailure ) ) . Error ( DefaultMessage , this ) ;
30
30
}
31
31
32
32
/// <summary>
@@ -40,8 +40,7 @@ public AssertionFailure(string message) : base(message)
40
40
/// </param>
41
41
public AssertionFailure ( string message , Exception innerException ) : base ( message , innerException )
42
42
{
43
- LogManager . GetLogger ( typeof ( AssertionFailure ) ) . Error (
44
- "An AssertionFailure occurred - this may indicate a bug in NHibernate" , innerException ) ;
43
+ LogManager . GetLogger ( typeof ( AssertionFailure ) ) . Error ( DefaultMessage , innerException ) ;
45
44
}
46
45
47
46
/// <summary>
0 commit comments