An Introduction to Error Handling in PowerShell – Keith ...
Jun 09, 2013· You can also have Catch blocks that will only trap specific exceptions. The reason for doing this is so you can add different handlers for each possible failure condition that you may encounter. Some exceptions you may just want to log and exit, but others you may have a recovery action for.