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