static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) { RuntimeErrorManager.ReportError(new RuntimeError(RuntimeErrorLevel.Medium, e.Exception, "Application")); }
static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { RuntimeErrorManager.ReportError(new RuntimeError(RuntimeErrorLevel.Medium, (Exception)e.ExceptionObject, "Application")); }