Skip to content
New issue

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

How can we implement global exception handling? #14415

Closed
aueda opened this issue Sep 19, 2019 — with docs.microsoft.com · 1 comment
Closed

How can we implement global exception handling? #14415

aueda opened this issue Sep 19, 2019 — with docs.microsoft.com · 1 comment
Labels
Blazor Source - Docs.ms Docs Customer feedback via GitHub Issue
Milestone

Comments

Copy link

aueda commented Sep 19, 2019

The section "Places where errors may occur" shows all the places where an exception might be thrown, but the recommended resolution is wrapping the code with local try-catch statements. While we can add local try-catch to all the places, we might miss a few places and an unhandled exception might freeze the application.

Is there a way to implement a global exception handling, so we can catch any unhandled exception, like the ASP.NET custom errors? It would be useful to have a global exception handling so we can cover any unexpected exception while delivering a user-friendly page.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@dotnet-bot dotnet-bot added Blazor Source - Docs.ms Docs Customer feedback via GitHub Issue labels Sep 19, 2019
@guardrex guardrex added the DR label Sep 19, 2019
@guardrex guardrex added this to the Backlog milestone Sep 19, 2019
@pranavkm
Copy link
Contributor

@aueda please see the discussion here: dotnet/aspnetcore#13452

@guardrex guardrex removed the DR label Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blazor Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
None yet
Development

No branches or pull requests

4 participants