On Thu, 14 Sep 2000, Geoffrey Young wrote:

> remember that custom_response() is a tie into Apache's ErrorDocument
> handling, which uses an internal redirect, and for internal redirects you
> can use $r->prev to get at the initial request's stuff.  See the eagle book
> for more detail...

okay - i got that to work.  i was getting confused because notes from the
handler() were showing up in the current request's notes for the
custom_response() handler *and* (as i've discovered) in the previous
notes.  should that happen? 

notice the duplicated LB-handler:

        #the stuff from $r->notes
        Notes are -----
        LB-handler => Run at Thu Sep 14 09:50:11 2000
        PERL_CUR_HOOK => PerlHandler

        #the stuff from $r->prev->notes
        Prev Notes are -----
        LB-Error => Oops! i messed up
        LB-handler => Run at Thu Sep 14 09:50:11 2000
        PERL_CUR_HOOK => PerlHandler

> from this and your other post, you might want to take a look at
> http://perl.apache.org/guide/perl.html#Exception_Handling_for_mod_perl

> to get another perspective on exception handling...

however, i'm not doing anything with exceptions.  i'm not handling errors
- i'm aborting the request as a last ditch scenario.  for some reason the
script has decided that it can't continue and wants to send DONE while
still taking care of some logging and notification.

--
brian d foy                              <[EMAIL PROTECTED]>
Director of Technology, Smith Renaud, Inc.
875 Avenue of the Americas, 2510, New York, NY  10001
        V: (212) 239-8985

Reply via email to