public static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) { if (@internal) { return; } @internal = true; try { Ionsole.Write(e.Exception); } catch { } @internal = false; }
private static void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e) { if (@internal) { return; } @internal = true; try { WriteSeparator("Handled Exception", '-'); Ionsole.Write(e.Exception); WriteSeparator(null, '-'); } catch { } @internal = false; }