[Catalyst] Catching exceptions
Bernhard Graf
catalyst at augensalat.de
Sat Jun 3 22:27:03 CEST 2006
Matt S Trout wrote:
> check $c->error in your end action, handle it, then call
> $c->clear_errors to prevent Catalyst generating an error screen. Note
Ah! Thank you. That should work.
Do those errors always have the following format?
Caught exception in CLASS->method "error text at Perl::Module.pm line 123"
It would be more convenient, if these errors would have some kind of
structure - e.g. an object.
> that in the absence of this so long as your app isn't in debugging
> mode users will see "Please come back later" in lots of languages,
> not a dump of your app's internals.
You are right. ;-)
--
Bernhard Graf
More information about the Catalyst
mailing list