예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AssertionFailure"/> class.
 /// </summary>
 /// <param name="message">The message that describes the error. </param>
 /// <param name="innerException">
 /// The exception that is the cause of the current exception. If the innerException parameter
 /// is not a null reference, the current exception is raised in a catch block that handles
 /// the inner exception.
 /// </param>
 public AssertionFailure(string message, Exception innerException) : base(message, innerException)
 {
     NHibernateLogger.For(typeof(AssertionFailure)).Error(innerException, DefaultMessage);
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AssertionFailure"/> class.
 /// </summary>
 public AssertionFailure() : base(String.Empty)
 {
     NHibernateLogger.For(typeof(AssertionFailure)).Error(DefaultMessage);
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AssertionFailure"/> class.
 /// </summary>
 /// <param name="message">The message that describes the error. </param>
 public AssertionFailure(string message) : base(message)
 {
     NHibernateLogger.For(typeof(AssertionFailure)).Error(this, DefaultMessage);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NonUniqueResultException"/> class.
 /// </summary>
 /// <param name="resultCount">The number of items in the result.</param>
 public NonUniqueResultException(int resultCount)
     : base("query did not return a unique result: " + resultCount.ToString())
 {
     NHibernateLogger.For(typeof(NonUniqueResultException)).Error("query did not return a unique result: {0}", resultCount);
 }