The first choice, it allows a more understandable and readable code, especially since your procedure or function should try to make a very specific action, the fact that you have two separate calls that can throw 2 separate exceptions means that it does more, what it should be, perhaps it is necessary
Either spit 2 calls to 2 separate methods or go to the first approach.
The only reason you can go with the second approach is because your method performs 2 actions and a little more, but you want to process only 2 lines of code for exceptions and possibly wrap them and continue execution, but this is not recommended
Neil Jan 18 2018-10-18 14:55
source share