Hi,all. Can anyone eplain me a bit about error handling. Where i can
catch it and when? I use this:
MyApp::C::MyController
sub auto : Private {
my ($self, $c) = @_;
if ($c->error) {
$c->stash->{error} = " Critical ERROR!! ";
$c->forward('/error');
$c->error(0);
return 0;
}
}
This works but then all my subs in this controller are redirected to /error.