October 2017
Intermediate to advanced
440 pages
11h 47m
English
PowerShell 1.0 came with trap. trap is used to catch errors raised anywhere within the scope of the trap declaration. That is, the current scope, and any child scopes.
trap is a useful tool for capturing errors that are not accounted for by try-catch blocks. Much of its use has been superseeded by try-catch-finally.
Read now
Unlock full access