[Catalyst] Catching exceptions

Bernhard Graf catalyst at augensalat.de
Sun Jun 4 13:02:10 CEST 2006


Aran,

> These errors are trapped whenever a dispatch happens (such as
> handling a URL or a $c->forward) by wrapping the call in an eval{}. 
> So, these errors are just standard perl errors.  If you want, when
> you call die() in your app you can pass in a hashref (or object,
> whatever you want) and $c->error() will contain that data.  Its
> rarely used, but nothing says you have to use a string when dieing.

thank you for throwing light on this.
-- 
Bernhard Graf



More information about the Catalyst mailing list