Exemplo n.º 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;
 }
Exemplo n.º 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)
            {
                //..
            }
        }