示例#1
0
        public override bool Notify(Exception ex, string humaneMsg)
        {
            var exMsg     = ExceptionMsg.Build(ex, humaneMsg);
            var rtnResult = ShowMessageBox(exMsg);

            LogToFile.WriteMsg(exMsg);
            return(rtnResult);
        }
示例#2
0
 protected ExceptionHandlerBase(ExceptionMsg exceptionMsg, LogToFile logToFile)
 {
     ExceptionMsg = exceptionMsg;
     LogToFile    = logToFile;
 }
 public ExceptionHandlerLog(ExceptionMsg exceptionMsg, LogToFile logToFile) : base(exceptionMsg, logToFile)
 {
 }
 public override bool Notify(Exception ex, string humaneMsg)
 {
     return(LogToFile.WriteMsg(ExceptionMsg.Build(ex, humaneMsg)));
 }
示例#5
0
 public ExceptionHandlerMessageBox(ExceptionMsg exceptionMsg, LogToFile logToFile)
     : base(exceptionMsg, logToFile)
 {
 }