At last week’s UK PowerShell User Group meeting, Jeremy gave a talk on Error handling. It got me thinking about the whole business of errors and error handling in PowerShell. One of the great differences between casual and production scripts is the need...
A lot of people are confused and ask how to correctly trap errors. Let's see how that works. Default Error Handling Whenever an error occurs, a so called "exception" is raised. If noone bothers to "handle" that exception, it finally ends up being handled by PowerShell, and PowerShell...