We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When a custom exception is triggered, the correct exception type cannot be obtained in the unhandled exception event.
Attach the UnhandledException event
public App() { this.InitializeComponent(); UnhandledException += OnUnhandledException; } private void OnUnhandledException(object sender, Microsoft.UI.Xaml.UnhandledExceptionEventArgs e) { }
Throws a custom exception
public sealed partial class MainWindow : Window { public MainWindow() { this.InitializeComponent(); } private void myButton_Click(object sender, RoutedEventArgs e) { throw new KnownException("LOB Warning"); } } public class KnownException : Exception { public KnownException(string p_message) : base(p_message) { } }
Unable to get the correct type of exception
No response
1.0.0
Packaged (MSIX)
Visual Studio 2022-preview
The text was updated successfully, but these errors were encountered:
Please check if it is a bug.
Sorry, something went wrong.
I'm facing the same issue. Will this bug ever be fixed?
No branches or pull requests
Describe the bug
When a custom exception is triggered, the correct exception type cannot be obtained in the unhandled exception event.
Steps to reproduce the bug
Attach the UnhandledException event
Throws a custom exception
Unable to get the correct type of exception
Expected behavior
No response
Screenshots
No response
NuGet package version
1.0.0
Packaging type
Packaged (MSIX)
Windows version
No response
IDE
Visual Studio 2022-preview
Additional context
No response
The text was updated successfully, but these errors were encountered: