Пример #1
0
 private void App_OnDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     Log.Error(e.Exception.ToString());
     try
     {
         Extentions.ShowMessageBox("Generic error - unknown");
     }
     catch (Exception)
     {
         //..
     }
     e.Handled = true;
 }
Пример #2
0
        private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            var exception = e.ExceptionObject as Exception;

            if (exception == null)
            {
                return;
            }
            Log.Error(exception.ToString());
            try
            {
                Extentions.ShowMessageBox("Generic error - unhandled");
            }
            catch (Exception)
            {
                //..
            }
        }