Page 1 of 1

COM Automation exception handling

Posted: Tue Sep 06, 2016 4:26 pm
by MJTreasuryNZ
Suppose I pass a command to Eviews through the COM Automation API and it fails for some reason. If the COM Automation Log is open, it issues an explanation of what went wrong in red at the bottom of the log. How do I get Eviews to return the explanation of the error through the COM Automation API to the calling application?

Re: COM Automation exception handling

Posted: Wed Sep 07, 2016 7:21 am
by EViews Steve
Usually an exception is thrown by EViews Automation. The exception has to be caught and if you check the message portion of the exception it will contain the same error message.

Most COM client environments support this exception handling. If you'd like more specific help, let me know what your COM client is running in (VBA, .NET, C++) and what command is triggering the error that you'd like returned.