Re: Cluebat needed for working with the error handling
Dave Rolsky <[email protected]> Mon, 13 Sep 2010 21:10:48 -0500 (CDT)
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--1732368668-1555411980-1284430248=:3460
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
On Mon, 13 Sep 2010, Ask Bj=F8rn Hansen wrote:
> Under apache the request handler uses _handle_error() to rethrow
>
> sub _handle_error
> {
> my ($self, $err) =3D @_;
>
> if (isa_mason_exception($err, 'TopLevelNotFound')) {
> rethrow_exception $err;
> ...
>
> ... and I'm guessing this somehow gets turned into declining the reques=
t via the mod_perl API?
See prepare_request for how it's handled.
> Anyway - what am I supposed to do to return something else in this case=
?
Not sure exactly. Looking at the CGIHandler code it seems like we do=20
something totally different under that code ;)
> Any hints would be appreciated -- I stared at the code for almost an=20
> hour and got nowhere. It's been, ahem, a few years since I worked with=
=20
> Mason. :-)
I think you want wrap $interp->exec in an eval and handle the errors=20
yourself.
-dave
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
http://VegGuide.org http://blog.urth.org
Your guide to all that's veg House Absolute(ly Pointless)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
--1732368668-1555411980-1284430248=:3460
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
--1732368668-1555411980-1284430248=:3460
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Mason-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-devel
--1732368668-1555411980-1284430248=:3460--