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...

ความคิดเห็น • 14

  • @TheSorenn
    @TheSorenn หลายเดือนก่อน

    excellent video! I need to figure it out how to build the CustomeErrorBoundary in Blazor Server

  • @vincentanzelone8705
    @vincentanzelone8705 11 หลายเดือนก่อน

    This was a fantastic tutorial. Just what I was looking for. Thank you so much!

  • @thammapatc6885
    @thammapatc6885 ปีที่แล้ว

    Thank you, Great tutorial!!!

  • @darklen14
    @darklen14 2 ปีที่แล้ว +3

    Didn't realize this was for webassembly till the end..

  • @Lan-so5gv
    @Lan-so5gv 2 ปีที่แล้ว

    Thanks, it helps me a lot

  • @brentondamron6522
    @brentondamron6522 ปีที่แล้ว

    Thank you super helpful!

  • @candritzky
    @candritzky 2 ปีที่แล้ว

    @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?

    • @BernhardHofmann
      @BernhardHofmann ปีที่แล้ว +2

      @4:40 he needs the reference to be able to invoke the `Recover` method that's on the `ErrorBoundary` class.

  • @RecipeNama
    @RecipeNama ปีที่แล้ว

    Awesome tutorial.

  • @Mo-ef9yt
    @Mo-ef9yt 2 ปีที่แล้ว +1

    how will you get the environment if using server side

    • @robnelder
      @robnelder 2 ปีที่แล้ว

      Instead of IWebAssemblyHostEnvironment use Mirosoft.AspNetCore.Hosting.IWebHostEnvironment. Add a using for Microsoft.Extensions.Hosting to get .IsDevelopment()

  • @tarktaro3861
    @tarktaro3861 2 ปีที่แล้ว +1

    Awesome

  • @DigitalNomadOnFIRE
    @DigitalNomadOnFIRE ปีที่แล้ว +1

    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.