Error handling

For questions regarding programming in the EViews programming language.

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

abielr
Posts: 9
Joined: Wed Feb 04, 2009 12:25 pm

Error handling

Postby abielr » Tue May 12, 2009 11:51 am

Does EViews have any mechanism for error handling? It seems clear from the documentation that there is no try/catch feature in the language, and I also cannot find any mention of simpler error handling mechanisms. At a minimum, I would like to find a way to have my programs silently log errors and then continue processing.

Thank you.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13315
Joined: Tue Sep 16, 2008 5:38 pm

Re: Error handling

Postby EViews Gareth » Tue May 12, 2009 12:18 pm

You can set your maximum error count to something greater than 1. The program will then run and show you a log of errors at the end.

There is no try/catch mechanism, but there is an @errorcount function that will return the number of errors that have occurred so far. You can use this to check whether a line has created an error or not (by comparing the count before and after the line).
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 12 guests