Set-KFThrowErrorsPreference
Syntax
Set-KFThrowErrorsPreference
[-ThrowErrorsPreference] <bool>
[-ThrowErrors[:$true]]
Support
>= kenaflow 2.0.0
Return
Nothing.
Description
This allows you to set the default behavior for kenaflow error handling at the level of the current workflow script.
This will overwrite the workflows default, that is read from _wfconfig.ps1
.
Please read article Error Handling.
Parameters
[-ThrowErrorsPreference] <bool>
The new error handling preference,
$true
or$false
.
[-ThrowErrors[:$true]]
This is a default parameter for all kenaflow cmdlets. If set to
$true
(default!) the engine will pass exception within the cmdlet to the script for further handling.
Example
Set-KFThrowErrorsPreference $true