Ejemplo 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();
        }
Ejemplo n.º 2
0
        private async void App_UnhandledException(object sender, Microsoft.UI.Xaml.UnhandledExceptionEventArgs e)
        {
            e.Handled = true;

            await e.Exception.LogExceptionWithUserMessage();
        }
Ejemplo 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;
 }
Ejemplo 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}");
 }
Ejemplo n.º 6
0
 private void App_UnhandledException(object sender, Microsoft.UI.Xaml.UnhandledExceptionEventArgs e)
 {
     Debug.WriteLine(e);
 }
Ejemplo n.º 7
0
 private void App_UnhandledException(object sender, Microsoft.UI.Xaml.UnhandledExceptionEventArgs e)
 {
     e.Handled = true;
     //throw new NotImplementedException();
 }
Ejemplo 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
 }