Exceptions in Custom Hosts
In my custom host I have implemented the powershell user interface and am sending the powershell outputs to a rich text box. Everything is going great except for exceptions. In the default powershell host all the exceptions thrown by scripts are caught and displayed to the user. However, in my custom host the exceptions crash the app unless I handle them myself. Is there a way to make the powershell engine handle the exceptions in my custom host the same way they are handled in the default host?
Regards,
H.V
|