///<summary>Creates a new instance of from an SqlException</summary> ///<param name="Exception">The original SqlException</param> ///<remarks>Level will be Warning if Exception.Class<16) otherwise Severe</remarks> public BusinessRuleException(SqlException Exception) { _Message = Exception.Message; _Level = (Exception.Class < 16)?BusinessRuleLevel.Warning:BusinessRuleLevel.Severe; }
///<summary>Creates a new instance of BusinessRuleException with message and Level</summary> ///<param name="Message">The error message;</param> ///<param name="Level">The BusinessRuleLevel of this exception.</param> public BusinessRuleException(string Message, BusinessRuleLevel Level) { _Message = Message; _Level = Level; }