Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 168455

Export of ErrorRecord Category Information

$
0
0

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


Viewing all articles
Browse latest Browse all 168455

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>