Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exception Handling
Message
 
À
13/04/2007 13:17:43
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB.NET 1.1
Divers
Thread ID:
01215534
Message ID:
01215720
Vues:
17
>Thanks for the input. I have started using exceptions instead of error codes. >They seem to work much better. I have read where it is slower and error codes >should be used, but that doesn't seem to be the popular opinion.

They just seem?:) I hated asp x.0 (classic) for that particular reason.
You are going to appreciate exceptions more if you do Oracle PL/SQL instead of T-SQL.

Build your own exceptions for domain logic.
When catching try to catch starting with the most specific one rather than Exception ex.
Use finally for closing resources.
When I build classes/components that are used by other folks, I throw mostly domain exceptions and then the caller should be dealing with catching the exceptions and rethrowing them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform