Summary of the new document or enhancement
Description of what to update
In practice, catch [System.Management.Automation.RuntimeException] { ... } behaves the same as an unqualified catch block. That is, it catches any exception. Reason for that is explained in PowerShell/PowerShell#16392 (comment).
It would be good to document this behavior in our help content.
Summary of the new document or enhancement
catchblock in a try / catch statement qualified with typeSystem.Management.Automation.RuntimeExceptiontraps *any* exception PowerShell/PowerShell#16392Description of what to update
In practice,
catch [System.Management.Automation.RuntimeException] { ... }behaves the same as an unqualified catch block. That is, it catches any exception. Reason for that is explained in PowerShell/PowerShell#16392 (comment).It would be good to document this behavior in our help content.