Forum Discussion
Matthew McDermott
Dec 12, 2017Brass Contributor
Proper Exception Handling when authoring PnP-PowerShell Cmdlets
I am wondering about the proper or recommended way to handle Exceptions in the PnP PowerShell cmdlets. I'll use the Get-PnPTerm cmdlet as an example. Currently, if the term does not exist the cmdlet ...
Dec 12, 2017
If you use the cmdlets in your own PS script I think you can handle properly the exceptions produced when executing Gt-PnPTerm...the other option, since PnP is a community initiative, is to participate in the project and help on improving these cmdlets
- Matthew McDermottDec 12, 2017Brass Contributor
That is what I am asking, in general, if I write new cmdlets, what is the preferred handling approach? (That's why the title reads "when authoring".)