internal static void ReportException(Exception ex, string extra) { string caughtIn = "unknown" + extra; try { caughtIn = new System.Diagnostics.StackTrace().GetFrame(1).GetMethod().Name + ' ' + extra; } catch { } SessionLog.ReportException(ex, caughtIn); }
internal static void ReportException(Exception ex) { string caughtIn = new System.Diagnostics.StackTrace().GetFrame(1).GetMethod().Name; SessionLog.ReportException(ex, caughtIn); }