I'm developping a winform application and I would like to make it as robust as possible.
In my code there are classes where I throw exceptions that I master very well and catch them whenever it's needed. However, there are some other classes/methods that throw exception that I may have forgotten and are not thrown in the current testing scenarios.
Let's say for example the class StreamReader The constructor may throw different exceptions that should be handeled (MSDN)
My question is there any tool for VB.Net (which works) that would check if am I instanciating the class StreamReader in a Try and Catch ?
I have been looking to the page : Wiki
I checked also the threads StackOverFlow and StackOverFlow
But none of them really helped me.
I read somewhere that every operation theoretically can throw an exception. Well, the idea is to reduce at least the "first level" exception and at least only for core .Net components that may have been forgotten without necessarily targetting 100% of the exceptions or targetting third parties classes.
If someone has an answer I would appreciate your help :)
Cheers in advance.