Esempio n. 1
0
        void App_UnhandledException(object sender, Microsoft.UI.Xaml.UnhandledExceptionEventArgs e)
        {
            e.Handled = true;
            if (task != null && !task.IsCompleted)
            {
                return;
            }
            var dialog = new Windows.UI.Popups.MessageDialog(e.Exception.ToString());

            task = dialog.ShowAsync().AsTask();
        }
Esempio n. 2
0
        private async void App_UnhandledException(object sender, Microsoft.UI.Xaml.UnhandledExceptionEventArgs e)
        {
            e.Handled = true;

            await e.Exception.LogExceptionWithUserMessage();
        }
Esempio n. 3
0
 private void App_UnhandledException(object sender, Microsoft.UI.Xaml.UnhandledExceptionEventArgs e)
 {
     e.Handled = true;
 }
 private void OnUnhandledException(object?sender, Microsoft.UI.Xaml.UnhandledExceptionEventArgs e)
 {
     AppendErrorMessage(e.Exception.ToString());
     e.Handled = true;
 }
Esempio n. 5
0
 /// <summary>
 /// Handles the UnhandledException event of the Current control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="UnhandledExceptionEventArgs"/> instance containing the event data.</param>
 private void Current_UnhandledException(object sender, UnhandledExceptionEventArgs e)
 {
     e.Handled = true;
     HandleException(e.Exception, $"{e.Exception.Message}{Environment.NewLine}{e.Message}");
 }
Esempio n. 6
0
 private void App_UnhandledException(object sender, Microsoft.UI.Xaml.UnhandledExceptionEventArgs e)
 {
     Debug.WriteLine(e);
 }
 private void App_UnhandledException(object sender, Microsoft.UI.Xaml.UnhandledExceptionEventArgs e)
 {
     e.Handled = true;
     //throw new NotImplementedException();
 }
Esempio n. 8
0
 private void App_UnhandledException(object sender, Microsoft.UI.Xaml.UnhandledExceptionEventArgs e)
 {
     // TODO WTS: Please log and handle the exception as appropriate to your scenario
     // For more info see https://docs.microsoft.com/windows/winui/api/microsoft.ui.xaml.unhandledexceptioneventargs
 }