COM Automation exception handling
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Posts: 1
- Joined: Tue Sep 06, 2016 4:04 pm
COM Automation exception handling
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 Developer
- Posts: 799
- Joined: Tue Sep 16, 2008 3:00 pm
- Location: Irvine, CA
Re: COM Automation exception handling
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.
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.
Who is online
Users browsing this forum: No registered users and 13 guests