2,187
edits
(→Strings: Added "Search") |
m (→Basic Error Catcher: Reworded) |
||
Line 374: | Line 374: | ||
=== Basic Error Catcher === | === Basic Error Catcher === | ||
If you know where the error is likely to occur, then just place an error catcher immediately after it. | If you know where the error is likely to occur, then just place an error catcher immediately after it. This doesn't stop the exception appearing on the console, but does allow you to take some action as a result. | ||
<pre> | <pre> | ||
if (-not $?) { | if (-not $?) { |