proganon wrote:
Is there any purpose for using multiple (specific) catch blocks if all exceptions will be handled the same way?
Yes. This provides the ability to handle specific exceptions in a sensible fashion - for instance, you might have a bit of code that updates a database, and the SQL Connection terminates unexpectedly during the operation - you might want to attempt the update again (having reopened the connection). If you get a different type of exception, you probably wouldn't want to attempt the update again. There's just one example of doing this.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx