public static void setRuntimeMsg(string pMsg) { if (pMsg == null) { return; } handlerLog.set(pMsg); }
void _setException(Exception exc, String msg, object[] vars, Action pAction) { try { { var agg_ = exc as AggregateException; if (agg_ != null && agg_.InnerExceptions != null && agg_.InnerExceptions.Count > 0) { log.set(exc.ToString()); foreach (Exception e in agg_.InnerExceptions) { setException(e); } return; } } if (msg != null && msg != string.Empty) { string text = ToolException.unwrap(exc); #if DEBUG Console.WriteLine(exc.ToString()); #endif log.set(text); log.set(exc.ToString()); if (exc.InnerException != null) { log.set(exc.InnerException.ToString()); } // log.flush(); if (showUser) { ToolMsg.show(null, text, pAction); } } } catch (Exception err) { } }