Error handling
Posted: Tue May 12, 2009 11:51 am
by abielr
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.
Re: Error handling
Posted: Tue May 12, 2009 12:18 pm
by EViews Gareth
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).