471,354 Members | 2,121 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

Good error handling design

GS
Hello,

I'd like to centralize error handling in my ASP.NET project. How exactly I
design classes so all expections will be handled by single error handler for
the whole project? Any simple code samples?
I like this approach since in that method I'd be able to define where errors
are written and how they are handled.
Thanks,
G
Jan 7 '06 #1
1 1051
Application_Error method in Global.asax is your best bet.

"GS" <no@no.com> wrote in message
news:es**************@TK2MSFTNGP10.phx.gbl...
Hello,

I'd like to centralize error handling in my ASP.NET project. How exactly I
design classes so all expections will be handled by single error handler for the whole project? Any simple code samples?
I like this approach since in that method I'd be able to define where errors are written and how they are handled.
Thanks,
G

Jan 8 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Christian Christmann | last post: by
1 post views Thread by michaeltorus | last post: by
3 posts views Thread by Agnes | last post: by
1 post views Thread by GS | last post: by
35 posts views Thread by jeffc226 | last post: by
9 posts views Thread by arnuld | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.