/// <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 RainbowException(Rainbow.Framework.LogLevel level, HttpStatusCode statusCode, string message, Exception inner) : base(message, inner) { _level = level; _statusCode = statusCode; }
/// <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 RainbowException(Rainbow.Framework.LogLevel level, string message, Exception inner) : base(message, inner) { _level = level; }