Re: Aggressive exception handler making extra work for itself.

Dave Rolsky <[email protected]> Wed, 4 Apr 2007 20:27:01 -0500 (CDT)
Newsgroups gmane.comp.web.mason.devel
Message-ID <[email protected]>
On Tue, 3 Apr 2007, Jonathan Swartz wrote:

>> So the hacky workaround I came up with was to only set Mason's
>> $SIG{__DIE__} handler when the error mode is "output".
>
> But it can also be useful to get the full stack trace in the logs
> under "fatal" error mode. Some users might decide this is worth the
> expense, especially if the modules they call aren't making much use
> of die for exceptions.
>
> So we might want this to be its own parameter, separate from error mode.

Much as I hate adding more parameters, I think you're correct here.


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV