Catch multiple Exceptions at one go

It is not a good practice to catch System.Exception, as the catch block will be executed with unexpected exceptions and it will hide the real error. But sometimes, you want to catch multiple exceptions in order to avoid unnecessary repetitive code. For example,

“is” statement is nice as the code reads like plain English.
Make sure you “throw”, rather than “throw ex”, as it will generate a new exception with an empty call stack. “throw” simply throws the existing exception.