Add Exception Visibility to Cmdlet Help
Votes from Connect: 4
Original Date Submitted: 5/13/2015 9:02:25 PM
Handle: Matt McNabb
Site Name: PowerShell
Feedback ID: 1329164
It would be nice to have cmdlet help include information about any error types that might be thrown and whether they are terminating or non-terminating. This would be a benefit when writing scripts that have formal error-handling with try/catch so we can properly filter the catch blocks and add -ErrorAction Stop where necessary.
Usage could be something like:
Get-Help Get-Something -Errors
Get-Help Get-Something -Exceptions
Product Studio item created by Connect Synchronizer due to creation of feedback ID 1329164 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=1329164).
Internal BugId: 14462