[Catalyst] Catalyst Exception received by e-mail?

Dylan Vanderhoof DylanV at semaphore.com
Tue Mar 27 17:23:40 GMT 2007



> -----Original Message-----
> From: Ash Berlin [mailto:ash_cpan at firemirror.com] 
> Sent: Tuesday, March 27, 2007 9:12 AM
> To: The elegant MVC web framework
> Subject: Re: [Catalyst] Catalyst Exception received by e-mail?
> 
> 
> Dylan Vanderhoof wrote:
> > I'm sure there's a better way to do it, but I have some code in
> > Root->end() that effectivly does (pseudocode):
> > 
> > If( $error && !$debug ) {
> >    email_stacktrace();
> >    clear_error();
> >    template = 'default_error.tt';
> > }
> > 
> > The one problem with doing it like that is that if you die 
> in the view
> > somewhere, you don't get emailed.  I haven't had time to 
> look into it
> > much further since we almost never have a failure in the view.
> > 
> > -D
> > 
>
> Look at finazlie_error(s?) in Catalyst (you'd create a sub 
> finalize_error in MyApp.pm) for a better place to do this
> 
> ash
> 

Hm, yep.  That's a much better place to do that.  Thanks.  =)

-D



More information about the Catalyst mailing list