Blazor Global Exception Handling ErrorBoundary
ฝัง
- เผยแพร่เมื่อ 23 ก.ย. 2024
- In this video I show you how we can use the ErrorBoundary Component to handle all of our unhandled exceptions.
gavilanch3 great video about ErrorBoundaries: • Blazor .NET 6 - Error ...
Code: github.com/Dav...
excellent video! I need to figure it out how to build the CustomeErrorBoundary in Blazor Server
This was a fantastic tutorial. Just what I was looking for. Thank you so much!
Thank you, Great tutorial!!!
Didn't realize this was for webassembly till the end..
It can be used for server also
Thanks, it helps me a lot
Thank you super helpful!
@DavidSeesSharp Thank you, very well done. But I don't understand why you're assigning a new ErrorBoundary to the @ref variable. Is this really needed and why?
@4:40 he needs the reference to be able to invoke the `Recover` method that's on the `ErrorBoundary` class.
Awesome tutorial.
how will you get the environment if using server side
Instead of IWebAssemblyHostEnvironment use Mirosoft.AspNetCore.Hosting.IWebHostEnvironment. Add a using for Microsoft.Extensions.Hosting to get .IsDevelopment()
Awesome
Just wasted 1 hour on this before I realised it was Web Assembly and I'm doing a Server project. Plase put Web Assembly in the title loool and say it up front.