File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -470,6 +470,7 @@ $results = $items | Process-Items -ErrorAction 'Stop'
470470
471471##### Summary
472472
473+ <!-- markdownlint-disable MD013 - Line length -->
473474| Scenario | Use | Why |
474475| ----------| -----| -----|
475476| General error handling in public commands | ` Write-Error ` | Provides consistent, predictable behavior; allows caller to control termination |
@@ -478,3 +479,4 @@ $results = $items | Process-Items -ErrorAction 'Stop'
478479| Private functions (internal use only) | ` $PSCmdlet.ThrowTerminatingError() ` or ` Write-Error ` | Behavior is understood by internal callers |
479480| Any command | Never use ` throw ` | Poor error messages; unpredictable behavior |
480481| Parameter validation attributes | ` throw ` | Only valid option within ` [ValidateScript()] ` |
482+ <!-- markdownlint-enable MD013 - Line length -->
You can’t perform that action at this time.
0 commit comments