The ability to specify an Exception type is useful when you think your code can encounter more
than one exception. In that case, you can have multiple Catch blocks for different Exception types.
The following code is capable of handling a specifi c SmtpException that may occur during the
mail sending operation, and it’s also capable of catching all other exceptions using its generic Catch
block: