We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://vexx32.github.io/2019/01/31/PowerShell-Error-Handling/
This post is amazing, but it doesn't talk about error handling in classes (where you don't have $PSCmdlet).
Explain that since PSCmdlet doesn't exist, you should use throw, possibly with an example similar to this:
throw [ArgumentException]::new("Bad data: $argumentVariable")
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://vexx32.github.io/2019/01/31/PowerShell-Error-Handling/
This post is amazing, but it doesn't talk about error handling in classes (where you don't have $PSCmdlet).
Explain that since PSCmdlet doesn't exist, you should use throw, possibly with an example similar to this:
The text was updated successfully, but these errors were encountered: