Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Try/Catch to subclassed Exception type?
Message
De
09/06/2005 05:15:26
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Try/Catch to subclassed Exception type?
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01021735
Message ID:
01021735
Vues:
65
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform