コード例 #1
0
 ///<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&lt;16) otherwise Severe</remarks>
 public BusinessRuleException(SqlException Exception)
 {
     _Message = Exception.Message;
     _Level   = (Exception.Class < 16)?BusinessRuleLevel.Warning:BusinessRuleLevel.Severe;
 }
コード例 #2
0
 ///<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;
 }