Global.asax application_error for global erro handling

V

vikram

I want to provide a custom erro handler for my application. henc I decided
to handle all error in Global.asax application_error event and then process
the error respectively.
Is there any problem doing so? I mean using global.asax app_error event to
handle all the error of aplication. as i will not be using try catch any
where in the app...

Thanks
 
K

Karl Seguin [MVP]

Sounds like the right approach to me.

Hoepfully you _will_ be using Try/Finally or usings in the app though.

Don't bother catching exceptions unless you can actually HANDLE them. And
centralize your logging/display somewhere, such as application_error.....

You got it right...

karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,739
Latest member
Clint8040

Latest Threads

Top