예제 #1
0
        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...
        }
예제 #2
0
        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));
            }
        }