Is it possible to export all of the PowerCLI Error Category's and Category Reasons? I am trying to build some error handling into a script depending on the type of error produced. Here is an example of an error with the information I am looking for:
PS C:\> $test[0].CategoryInfo
Category : InvalidArgument
Activity : Get-VMHost
Reason : ViServerConnectionException
TargetName :
TargetType :
Additionally is it possible to export all of the different Error Expection Types used by PowerCLI? For example: [VMware.VimAutomation.Sdk.Types.V1.ErrorHandling.VimException.ViServerConnectionException]
Message was edited by: Jason Robinson