public void HandleTest() { const string appName = "TEST_APP"; Exception ex = new Exception(); FailureHandler.Handle(appName, ex); // Should display a dialog box with exception stack trace in it... }
public void HandleTest2() { // Failure report try { new ExceptionGenerator().NullPointer(); } catch (Exception ex) { // Critical exception catched here FailureHandler.Handle("TEST_APP", ex); logger.Error(FailureHandler.GetStackTrace(ex)); } }