Exception Handling for ASP.NET Core Web API | .NET 7

Поділитися
Вставка
  • Опубліковано 11 гру 2024

КОМЕНТАРІ •

  • @broadshare
    @broadshare Рік тому +1

    Thank sir, have learned a lot from your tutorials.

  • @onlythestrongsurvive
    @onlythestrongsurvive 10 місяців тому +1

    I learned a lot with this tutorial. Thank you

    • @juliocasal
      @juliocasal  10 місяців тому +1

      Glad it was helpful!

  • @marcelolopesdasilva3864
    @marcelolopesdasilva3864 Рік тому +2

    Nice work Julio, as always!!!

  • @nasermasri9954
    @nasermasri9954 Рік тому +1

    Good job don't stop!

  • @mustafamahmoudahmed1778
    @mustafamahmoudahmed1778 Рік тому +1

    Great explanation. Thanks

  • @liz.1328
    @liz.1328 9 місяців тому +2

    This was very helpful. Thanks!

    • @juliocasal
      @juliocasal  9 місяців тому +1

      Glad it was helpful!

  • @gilmar69047
    @gilmar69047 11 місяців тому +1

    Thanks for this topic

  • @alimazik6803
    @alimazik6803 Рік тому +1

    Like the content Julio😊!

  • @jonsymon5497
    @jonsymon5497 Рік тому +1

    Thank you! Very helpful!!!

  • @pedroferreira9234
    @pedroferreira9234 Рік тому

    Hey Julio, thank you for the video!
    Would be cool if you extend this video for people that program to exceptions.

    • @juliocasal
      @juliocasal  Рік тому

      Pedro, you're welcome! Could you explain a bit the "program to exceptions" part?

    • @pedroferreira9234
      @pedroferreira9234 Рік тому +1

      @@juliocasal using custom exceptions, (instead of using OneOf for example).

  • @Marfig
    @Marfig Рік тому +1

    Thank you. Very useful explanation! I gather this is only meant to be used with unhandled exceptions. For all those cases where I want to throw a 4XX error, my endpoints should instead return their own problem details object and not go through this middleware. Is that correct?

    • @juliocasal
      @juliocasal  Рік тому

      In that case I would add a mapping function to my exception handling middleware. Maps specific exceptions to HTTP error codes.

  • @veeramuthur
    @veeramuthur Рік тому +1

    my dotnet core application is communicating to microservice. from microservice i am getting 400 error, but my dotnet core app is coverting to 400 to 500 status code storing in azure log as 500 (server is not found ) how its possible. i want to store same 400 into my azure logs. can you please suggest better way? thanks advance

    • @juliocasal
      @juliocasal  Рік тому +1

      You would need to debug your app.

  • @16M-w4y
    @16M-w4y Рік тому

    is very gooooooood 🙂😊🤩👍👍💪

  • @bycarsten
    @bycarsten Рік тому

    Nice approach, but can i use Try and Catch in my code to override this?

  • @KREKER8331
    @KREKER8331 Рік тому

    Thank you! Great content!