Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to handle possible exceptions
Message
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01315936
Message ID:
01315965
Vues:
12
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I'm wondering where should we handle possible errors - in the back-end in SP code or in the front end or in both?
>
>Which approach do you usually take?
>
>Thanks in advance.

If it is an execption the user should know about (underlying data has changed prior to update or duplicate key or something) then IMO the exception is best handled at the front end where you can give the user a clear message.

If an exception happens that does not affect what the user is trying to do, handle it at the server.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform