Last post Oct 12, 2017 07:56 PM by neoaguil17
Oct 11, 2017 07:48 AM|erum|LINK
what is best way of exception handling in asp.net app , I want that no exception thrown and every thing must catch . can any one share ideas on this ??
Oct 11, 2017 07:59 AM|PatriceSc|LINK
The basic idea is to handle them as "high" as possible and to catch locally particular exceptions if you can do something more about them (and you have no way to avoid the exception for exemple by checking file existence or whatever).
Edit: if you want to go further, knowing if using MVC or WebForms could help.
Oct 12, 2017 07:56 PM|neoaguil17|LINK
You have to include try - catch in each method in which you can a web service, inside each catch section you have to return an good message error to a client and the same
time you have to save the detail about the error in a txt file or eventvwr. It is an example: