Sometimes it happens that you need to do the same on two different types of Exceptions. I searched but found nothing for VB.NET.
A simple example:
Try '... Catch ex As Net.WebException 'Do something Catch ex As Net.CookieException 'Do the same Catch ex As Exception '... End Try
I wonder if there is a way to catch both exceptions at once without having to repeat the code.
Sysdragon
source share