February 2019
Intermediate to advanced
626 pages
15h 51m
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 aren't accounted for by try-catch blocks. Much of its use has been superseded by try-catch-finally.
Read now
Unlock full access