Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When to THROW exception?
Message
From
17/09/2005 21:18:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
When to THROW exception?
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01050675
Message ID:
01050675
Views:
49
Hi,
I am new to use TRY...CATCH...ENDTRY statement to handle error.
In my practise, I always store loexception.message to my object.cErrorMsg if any exception catched and passed .T./.F. to calling program.
Can anyone give me some ideas, when should I THROW the exception instead of storing error msg tro property and return boolean to calling prg?

Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Next
Reply
Map
View

Click here to load this message in the networking platform