Skip to content

Added error handling. - #1607

Merged
Niels Laute (niels9001) merged 5 commits into
microsoft:mainfrom
MGGSK:errHandling
Dec 6, 2024
Merged

Niels Laute (niels9001) merged 5 commits into
microsoft:mainfrom
MGGSK:errHandling

Conversation

@MGGSK

@MGGSK Mgg Sk (MGGSK) commented Aug 15, 2024 •

Copy link
Copy Markdown
Contributor

When an unhandled exception gets thrown the app no longer crashes. Now the user gets a notification with the exception.

Description

  1. Added a event handler to App.UnhandledException.
  2. Written code to create and show the notification.

Motivation and Context

The app crashes a lot.

How Has This Been Tested?

While testing I added a button that throws an exception to test my code.

Screenshots:

image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
Comment thread WinUIGallery/App.xaml.cs Outdated
@MGGSK
Mgg Sk (MGGSK) marked this pull request as ready for review August 15, 2024 20:31
@karkarl

Copy link
Copy Markdown
Collaborator

/azp run

Comment thread WinUIGallery/WinUIGallery.csproj Outdated
@karkarl

Copy link
Copy Markdown
Collaborator

/azp run

@niels9001
Niels Laute (niels9001) merged commit 2a820e3 into microsoft:main Dec 6, 2024
@MGGSK
Mgg Sk (MGGSK) deleted the errHandling branch December 6, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants