Closed
Description
Hello guys, I wanted to know what is the better way to catch exception at application level, to avoid put try catch in all my method and component, and centralize the exception management in one point (typically show an error notification and log the exception).
- I read https://docs.microsoft.com/en-us/aspnet/core/blazor/handle-errors?view=aspnetcore-3.0 but i don't find any information on catching global error (i don't want the user redirect to an error page)
- i find this way https://remibou.github.io/Exception-handling-in-Blazor/, the problem is i have only a string and could be better to have the entire exception, especially for logging.
so there is a better way to do this in preview8, or something planned for the RTM ?
thanks !
Metadata
Metadata
Assignees
Labels
This issue tracks a big effort which can span multiple issuesWork that is critical for the release, but we could probably ship withoutThis issue impacts most of the customersIncludes: Blazor, Razor ComponentsThis issue represents an ask for new feature or an enhancement to an existing oneThis label is used by an internal tool