Do you know if there is any option or extension to generate code required to catch all exceptions thrown by a method in Visual Studio?
For example I'm calling File.WriteAllBytes(...)
That method can throw 9 Exceptions: System.ArgumentException, System.ArgumentNullException, etc, etc.
I want the code for all 9 exceptions:
catch (ArgumentException) {
}
catch (ArgumentNullException) {
}
...
I have seen this behavior in Eclipse for Java but I wonder if there is anything similar in Visual Studio.
BTW I'm using Visual Studio 2012 Premium