Re: Aggressive exception handler making extra work for itself.
Jonathan Swartz <[email protected]> Mon, 2 Apr 2007 20:52:49 -0700
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
I guess that could work...any global policies for a particular program could be implemented in the main Exception::Class sbuclass. On Apr 2, 2007, at 4:02 PM, David E. Wheeler wrote: > On Apr 2, 2007, at 15:40, Jonathan Swartz wrote: > >> For Mason's purposes, we would need to be able to turn on/off >> stack traces in a dynamically scoped way (e.g. by setting an >> Exception::Class package var), since we want all errors that occur >> inside the request to convert to an Exception::Class object, and >> error_mode can change on a per-request basis. > > What about a parameter to Exception::Class->new()? > > Best, > > David > ------------------------------------------------------------------------- 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