Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
System.Web.Security Roles class
Message
 
 
À
20/03/2008 13:58:32
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01303990
Message ID:
01304029
Vues:
15
>>Yes, it's standard practice to only trap exceptions which you can handle, which usually isn't just "Exception", but a specific type of exception (or exceptions). Having said that, sometimes you have to capture the generic "Exception" type because no other (more specific exception) type is available.
>
>Paul,
>At that point, why don't you just create a custom Exception class? I do this a lot to trap business logic exceptions.

Would you please elaborate a bit on that with code sample?
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform