468,765 Members | 1,366 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

Global.asax application_error for global erro handling

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
Oct 4 '06 #1
1 1817
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

--
http://www.openmymind.net/
http://www.fuelindustries.com/
"vikram" <a@a.comwrote in message
news:e4**************@TK2MSFTNGP02.phx.gbl...
>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

Oct 4 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by vbMental | last post: by
9 posts views Thread by tshad | last post: by
7 posts views Thread by Jonas | last post: by
2 posts views Thread by tshad | last post: by
1 post views Thread by Anonieko | last post: by
19 posts views Thread by furiousmojo | last post: by
1 post views Thread by paulo | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.