easitab / EPR.GlobalFunctions

Provide functions to be used in script executed by EasitProcessRunner
https://docs.easitgo.com/techspace/epr/globalfunctions/
Apache License 2.0
1 stars 0 forks source link

Evaluate if we should use 'throw' or 'Write-Error #34

Closed easitab-owner closed 9 months ago

easitab-owner commented 10 months ago

Write-Error https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/write-error?view=powershell-7.3

vs.

typed throw https://learn.microsoft.com/en-us/powershell/scripting/learn/deep-dives/everything-about-exceptions?view=powershell-7.3#throwing-typed-exceptions

easitab-owner commented 9 months ago

We leave functions and its error handling "as is". This can be changed later if we find a use case that require a change.