using System; using System.Collections.Generic; using System.Text; namespace WCS.BaseExtensions { /// /// 警告异常 /// public class WarnException : Exception { /// /// 报告WCS /// public bool REPORTWCS { get; set; } /// /// 报告WMS /// public bool REPORTWMS { get; set; } /// /// 记录文本日志 /// public bool RECORDTXT { get; set; } /// /// 记录数据库 /// public bool RECORDDB { get; set; } /// /// 警告异常 默认都记录 /// /// public WarnException(string message) : base(message) { REPORTWCS = true; REPORTWMS = true; RECORDTXT = true; RECORDDB = true; } /// /// 警告异常,自定义上报 /// /// /// /// /// public WarnException(string message, bool rEPORTWCS, bool rEPORTWMS, bool rECORDTXT, bool rECORDDB) : base(message) { REPORTWCS = rEPORTWCS; REPORTWMS = rEPORTWMS; RECORDTXT = rECORDTXT; RECORDDB = rECORDDB; } } /// /// 执行记录 /// public class DoException : Exception { /// /// 警告异常 /// /// public DoException(string message) : base(message) { } } }