Forum Discussion
AlexanderM
Staff
15 years agoHello Aleksey,
The behavior you are facing is expected. Exceptions thrown within an event handler cannot be caught in the main script.
We have a suggestion in our database to implement the ability to handle exceptions generated in event handlers, and your request has increased its rating.
The behavior you are facing is expected. Exceptions thrown within an event handler cannot be caught in the main script.
We have a suggestion in our database to implement the ability to handle exceptions generated in event handlers, and your request has increased its rating.
karthikr1080
11 years agoNew Contributor
Hey Alexander,
I am using TestComplete 10.60. Is this ability implemented in this version?
I understand that the original author of this post this topic a while ago, but I still think having this ability is relevant today for bulding a custom test runner along the way described here.
What alrernatives are available in 10.60 to do this approach?
Thanks,
karthik
- karthikr108011 years agoNew Contributor
Ok, I tried this in TC 10.60. It is not working. The main script will not be able to catch an exception thrown by the OnLogError even handler routine. What alternatives are available to implement this in this version?
Thanks,
karthik