How to catch SocketException using the http library?

Posted by Jessica Taylor | Updated on

Want to catch SocketException using the http library? You can change login to be async so that you can await the response. That allows you to catch the exception (and, for example, return null instead of the Response).


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers