Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to handle errors
Message
From
27/11/2001 11:28:25
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
How to handle errors
Miscellaneous
Thread ID:
00586384
Message ID:
00586384
Views:
60
I'm finally getting to do some real OOP programming and am trying to learn how to do things the "right" way. One of the things that has got me confused is error handling. I just found out that if you put an Error method in an object that it acts like ON ERROR, which is cool. :) But I'm not sure where to go from there.

Once the error method has control, how do I let the code that caused the error know there was a problem? I want the original method to stop processing and return the error to what called it, so somehow it has to know.

I can think of various ways to do it, but they all seem rather kludgy. So I thought I'd ask what the usual way to do it is.

Thanks,

Michelle
Next
Reply
Map
View

Click here to load this message in the networking platform