Capturing all exceptions

  • Thread starter Thread starter Simon Harvey
  • Start date Start date
S

Simon Harvey

Hi,

What is the best strategy for making sure that all exceptions are handled. I
try and pre empt all the exceptions I can think of, but I'm sure that some
will fall through the net.

What would be the safest way to have the user redirected to a nice friendly
error page, whilst notifying the administrator to the nature of the problem?

I was wondering if this sort of stuff should be done in the Global.asax file

Thanks to anyone who can help

Simon
 
You can modify the customErrors element in web.config to redirect to an
error page, and from this error page you can send out a notification or take
whatever general action is most appropriate for an unhandled exception.
 
Back
Top