[Catalyst-dev] RFC: Catalyst::Action::RenderView::ErrorHandler

Brian Cassidy brian.cassidy at nald.ca
Fri May 18 18:04:33 GMT 2007


Andreas Marienborg wrote:
> I was in need of a better way to handle errors than the "Please come 
> back later" screen, and spent some time trying to find a good general 
> solution.
> 
> The current result is Catalyst::Action::RenderView::ErrorHandler.

My preference has been to use an Exception::Class-based system. I've put 
up some details in my blog [1] [2]. By default it just renders 
"error.tt" for any fatal error, though it could easily be extended to 
render which ever template is associated with the exception.

-Brian

[1] http://bricas.vox.com/library/post/catalyst-exceptionclass.html
[2] http://bricas.vox.com/library/post/catalyst-exceptionclass-detach.html



More information about the Catalyst-dev mailing list