Blazor WebAssembly : Global Exception Handling using CascadingValue - EP28

Published: 03 May 2021
on channel: CuriousDrive: Solve Coding Problems & Win Prizes!
9,167
149

Hey Coders,
In this tutorial, I am showing how you can handle exception globally for Blazor WebAssembly applications. I am also showing nice error message to the end user and hiding the stack trace from the browser console.

Logging Exceptions to Database -
   • Blazor WebAssembly : Logging to Datab...  

Blazored Toast Package -
https://github.com/Blazored/Toast

0:00 Introduction & Demo Setup
3:40 Creating Error.razor with CascadingValue
8:15 Using ILogger
10:27 Using Blazored.Toast
12:22 Using IWebAssemblyHostEnvironment
14:26 Clearing Logger Providers
16:01 Reusing Error Component

#Blazor #Global #ExceptionHandling

Subscribe here -    / @curiousdrive  
Talk to us on -   / curiousdrive  

Like our page -   / curiousdrive  
Follow us on -   / curious_drive  
Follow us on -   / curiousdrive  

Make a donation - https://www.paypal.me/curiousdrive
Be a member -   / curiousdrive  

#CuriousDrive #WeLoveCoding


On this page of the site you can watch the video online Blazor WebAssembly : Global Exception Handling using CascadingValue - EP28 with a duration of hours minute second in good quality, which was uploaded by the user CuriousDrive: Solve Coding Problems & Win Prizes! 03 May 2021, share the link with friends and acquaintances, this video has already been watched 9,167 times on youtube and it was liked by 149 viewers. Enjoy your viewing!