Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Another Question on Error Handling

Thread Tools

Another Question on Error Handling

Tom Jastrzebski
Posts: n/a
Hello everybody,

Here is how I understand ASP.Net processes the request in the context of
error handling:
the working process in the ProcessRequestMain() method (?) creates the Page
object, page controls, triggers page events like Init and Load - exact order
and details are unimportant.

What is important is that inside ProcessRequestMain() execution each of
those steps is enclosed within try/catch block, and if any exception is
caught HttpUnhandledException is being rethrown and the ProcessRequestMain()
method terminates.

Here is the question: is the any way to alter this behavior, so the
ProcessRequestMain() method does NOT terminate if, let's say, one of
controls being loaded causes exception, so the Page.Error event is triggered
but the process continues and other controls get loaded.

Conceptually, what I am looking for is similar to the
AppDomain.CurrentDomain.UnhandledException event handling mechanism.

I know about best practices and I really know how exceptions should be
handled in a perfect world but currently my world is less than perfect and I
have good reasons to temporarily do it that way.

Thank you,


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
signal handling and (structured) exception handling Peter C++ 34 10-17-2009 10:03 AM
python list handling and Lisp list handling Mark Tarver Python 22 04-26-2009 09:36 PM
Another exception handling question mike Java 4 06-01-2008 10:56 PM
Is faster handling hexadecimal values than handling chars? IƱaki Baz Castillo Ruby 1 04-15-2008 09:04 AM
another newbie question from another newbie.... Lee UK VOIP 4 05-17-2005 04:10 PM