According to MSDN , it is bad practice to catch exceptions without a specific type and use, for example, System.Net.Exception
Do I have to delve into the msdn manual to see the possible types of exceptions every time I am going to catch an error. Or is there some way in the IDE so I can see it quickly.
I am currently using Visual Studio 2013 Express Edition
try { using (WebClient goog = new WebClient()) { goog.DownloadString("http://google.com"); } } catch(Exception E) { saveLog("methodname", E.Message); }
EDIT: In this link , it looks like VS already has the ability to display exceptions, however, when I select a method, it only displays the type and parameters of the method. But he shows no exceptions
source share