COM Automation exception handling

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

MJTreasuryNZ
Posts: 1
Joined: Tue Sep 06, 2016 4:04 pm

COM Automation exception handling

Postby MJTreasuryNZ » Tue Sep 06, 2016 4:26 pm

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?

EViews Steve
EViews Developer
Posts: 799
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: COM Automation exception handling

Postby EViews Steve » Wed Sep 07, 2016 7:21 am

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.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 13 guests