Properly handling HttpClient exceptions within async / await

前端 未结 3 2084
醉梦人生
醉梦人生 2020-12-24 15:12

I was hoping somebody could enlighten me a little bit on an issue I am facing in regards to async/await exception handling with HttpClient. I have written some code to illus

3条回答
  •  爱一瞬间的悲伤
    2020-12-24 15:17

    This is an artifact of the debugger. It's determining that an exception is "uncaught" because it's not caught yet. In this case this is expected behavior.

    You are handling the exceptions correctly.

提交回复
热议问题