I am creating a new VEGAS Custom Command (or Extension). Is it able to catch the exceptions in the custom command?
If I throw an Exception in the custom command, or there are some null reference in the custom command, this will directly crash the whole VEGAS instead of show the error dialog like it in a VEGAS script. The users will find it hard to use if it crashed. However, it is impossible for me to handle all possible user errors at the first.
In VEGAS Script, we can put a try ... catch ... in the EntryPoint method, and wrap all the code inside. If caught any Exceptions, just call vegas.ShowError then close the script. So is anywhere to put try ... catch ... in a custom command?
If there is an exception, just show the exception to user or close the custom command window, do not crash the whole VEGAS.