I have used Powershell Script Inline Custom Action.
I have used the commands :
ConvertTo-SecureString
[Runtime.InteropServices.Marshal]::SecureStringToBSTR
[Runtime.InteropServices.Marshal]::PtrToStringAuto
How can I catch the exception thrown by these commands?