Skip to content

Latest commit

 

History

History

Throw-may-not-terminate

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Throw may not terminate

The help about_throw tells:

The Throw keyword causes a terminating error. You can use the Throw keyword
to stop the processing of a command, function, or script.

This is often true but not always. If, perhaps due to a mistake, the current error action preference is "SilentlyContinue" or "Ignore" (v3+) then throw does not terminate, unless it is called from a try block.

Scripts