durusmail: quixote-users: PublishError exception handling overhaul
PublishError exception handling overhaul
2002-05-14
2002-05-14
2002-05-14
2002-05-14
PublishError exception handling overhaul
Jonathan Corbet
2002-05-14
> Is this overkill?  It allows sites to have different error handling for
> different parts of the site.  Would anyone actually use it?  Perhaps
> only allowing _q_exception_handler in the root namespace would be good
> enough.

It probably would be good enough most of the time.  But then *somebody*
will want to do something different and end up digging through the request
object to try to figure out where the exception actually happened.  I think
it's better to have it work as you described - drop in a handler anywhere
in the traversal path.  When I get around to handling errors gracefully,
I'll probably use it :)

jon

Jonathan Corbet
Executive editor, LWN.net
corbet@lwn.net


reply