// Unhandled Exception 처리 함수 private static void SMEUnHandledExceptionHandler(object sender, UnhandledExceptionEventArgs e) { Exception exception = (Exception)e.ExceptionObject; StackTrace stacktrace = new StackTrace(true); SMECollector smecollector = new SMECollector(exception, stacktrace, ProjectInfo); //파일 전송 if (IsSend) { smecollector.SendToServer(ServerIP, ServerPort); } }
public static void CollectError(string sme) { StackTrace stacktrace = new StackTrace(true); SMECollector smecollector = new SMECollector(new Exception(""), stacktrace, ProjectInfo); }