Пример #1
0
 /// <summary>
 /// Constructor with ExceptionLevel, HttpStatusCode, message and innerException.
 /// </summary>
 /// <param name="level">ExceptionLevel enumerator</param>
 /// <param name="statusCode">HttpStatusCode enum</param>
 /// <param name="message">Text message to be included in log.</param>
 /// <param name="inner">Inner exception</param>
 public AppleseedException(Appleseed.Framework.LogLevel level, HttpStatusCode statusCode, string message, Exception inner)
     : base(message, inner)
 {
     _level      = level;
     _statusCode = statusCode;
 }
Пример #2
0
 /// <summary>
 /// Constructor with ExceptionLevel, message and innerException.
 /// </summary>
 /// <param name="level">ExceptionLevel enum</param>
 /// <param name="message">Text message to be included in log.</param>
 /// <param name="inner">Inner exception</param>
 public AppleseedException(Appleseed.Framework.LogLevel level, string message, Exception inner)
     : base(message, inner)
 {
     _level = level;
 }