Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Try/Catch to subclassed Exception type?
Message
From
09/06/2005 05:15:26
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Try/Catch to subclassed Exception type?
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01021735
Message ID:
01021735
Views:
67
Is it possible to specify an exception subclass for the Exception objects created by CATCH TO statement?

In other words:
local myException as myExceptionClass

try
  code here ...

catch to myException as myExceptionClass
  error handling code 

endtry
Or (as I suspect), CATCH TO only creates objects of the base Exception class?

If so, is there any scenario wher eit makes sense to subclass the base Exception class?

Thanks,
Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Next
Reply
Map
View

Click here to load this message in the networking platform