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.

  • 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 #webassembly

Blazor WebAssembly: Global Exception Handling using CascadingValue - EP28
13.85 GEEK